Bonjour,

je bloque sur uns script SQL et je ne vois pas où est le problème!

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
SET SERVEROUTPUT ON 
SET VERIFY OFF
SET maxnus := (SELECT max(nusgtdoc)+1 FROM gtdoc);
set mycond1 :='LMF_EB010506_2334195_20161231.pdf'; 
set mycond2 := '2334195'; 
insert into gtdoc(nusgtdoc,dscgtdoc, dengtdoc, dtygtdoc, ficgtdoc, idegtdoc, extgtdoc, ucrgtdoc, dcrgtdoc) VALUES (maxnus, mycond1, 'FACTURE', 'FACTURE', mycond1, mycond2, 'PDF', 'GTI', to_char(sysdate, 'YYYYMMDD'));
commit;
exit;