Hi,
ich möchte folgendes machen weiss aber nicht wie:
Habe folgendes SQL-Script:
---------------------------------
set echo off
set verify off
set pagesize 0
set linesize 210
set heading off
set term off
set feedback off
Spool item.txt
select t2.pitem_id, t4.puser_id, t5.pname
from ppom_object t1,
pitem t2,
ppom_application_object t3,
ppom_user t4,
ppom_group t5
where t1.puid = t2.puid
and t3.puid = t2.puid
and t4.puid = t3.rowning_useru
and t5.puid = t3.rowning_groupu
and (
t1.ROWNING_SITEU is null
or t1.ROWNING_SITEU = 'QN0I5AhswVnBKA'
)
and t2.pitem_id like 'itemid'
order by 1
;
exit
spool off
set verify on
set secho on
set termout on
-----------------------------
Dieses Script möchte ich per Batchdatei aufrufen (geht auch, ist kein Problem).
Allerdings möchte ich die "ItemID" als Variable mitgeben.
Also per Batch in der DB nach einer Bestimmten ID suchen, die sich aber laufend ändert.
Ich hoffe das hat jetzt noch jemand verstanden.
vielen Dank für die Hilfe.
mfg
Michael
------------------
Free TIBET!
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP