Bonjour
Je cherche le syntaxe pour utiliser les transactions dans une proc sous db2 udb v8.
quelque chose dans ce style :
create proc xxx (in xxx, in xxx)
begin
BEGIN TRAN
....
......
.....
......
IF SQLCODE <> 0 THEN
ROLLBACK TRAN;
ELSE
COMMIT TRAN;
END IF;
END
quelqu'un pourrait il me donner le bonne syntaxe ? merci![]()
Partager