- #1
O
ofna
Mitglied
Themenersteller
- Dabei seit
- 17.11.2005
- Beiträge
- 6
- Reaktionspunkte
- 0
hallo an alle! ich habe folgendes problem: Ich möchte im folgenden code die fixe zahl(608088781) durch meine variable d, die ich von einer abfrage(select) und meinem patchfile(mit &1) übergeben kriege ersetzen......
WIE KANN ICH DAS ANSTELLEN???? bin ratlos...
DANKE IM VORRAUS!!!!
p.s. print d funktioniert
------------------------------------------------------------
variable d number
begin
select id into :d from action_mode where name =->&1';
end;
/
select to_char(sysdate,'MMDDhhmiss') ||';'||';'|| td.target_address ||';'||';'||'2;'||to_char(sysdate-1,'YYYYMMDD') ||'0000'||';'||to_char(sysdate,'YYYYMMDD') ||'0015'||';' from trans_device td, store_device sd where td.id=sd.trans_device_id
and sd.id IN (select ag.store_device_id from action_group ag, action_mode_lnk aml where ag.id = aml.action_group_id and aml.action_mode_id = 608088781;
print d
------------------------
mfg ofna
WIE KANN ICH DAS ANSTELLEN???? bin ratlos...
DANKE IM VORRAUS!!!!
p.s. print d funktioniert
------------------------------------------------------------
variable d number
begin
select id into :d from action_mode where name =->&1';
end;
/
select to_char(sysdate,'MMDDhhmiss') ||';'||';'|| td.target_address ||';'||';'||'2;'||to_char(sysdate-1,'YYYYMMDD') ||'0000'||';'||to_char(sysdate,'YYYYMMDD') ||'0015'||';' from trans_device td, store_device sd where td.id=sd.trans_device_id
and sd.id IN (select ag.store_device_id from action_group ag, action_mode_lnk aml where ag.id = aml.action_group_id and aml.action_mode_id = 608088781;
print d
------------------------
mfg ofna