Bonjour,
je suis en Oracle ç.2.0.8 sur AIX.
J'ai besoin de tester le code retour d'un insert avant de supprimer les lignes corespondantes sur un autre schéma.
Je ne connais pas le shell unix, pouvez vous m'aider
Merci pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 script connect scott/tigger spool insert.log insert into scott.tab1b select * from tomas.tab1a where (to_char(sysdate, 'yymmdd') - to_char(date,'yymmdd') > 2); spool off si OK commit si NOK rollback connect tomas/toto delete from tomas.tab1a where (to_char(sysdate,'yymmdd') - to_char(date, 'yymmdd') > 2); commit;
Partager