clear markdown compare help best fiddles feedback dbanow.uk a leap of faith?
clear markdown donate comments/suggestions/bugs a leap of faith? bible365 diddy dollings
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0. 984328 fiddles created (11679 in the last week).

create table DEMO (n int);
 hidden batch(es)


begin transaction;
[IBM][CLI Driver][DB2/LINUXX8664] SQL0104N An unexpected token "transaction" was found following "begin ". Expected tokens may include: "<psm_function_compound_stmt>". LINE NUMBER=1. SQLSTATE=42601 SQLCODE=-104
 hidden batch(es)


insert into DEMO values (0);
 hidden batch(es)


select n "after insert" from demo;
after insert
0
 hidden batch(es)


update DEMO set n=1/n;
[IBM][CLI Driver][DB2/LINUXX8664] SQL0801N Division by zero was attempted. SQLSTATE=22012 SQLCODE=-801
 hidden batch(es)


select n "after error" from DEMO;
after error
0
 hidden batch(es)


commit;
 hidden batch(es)


select n "after commit" from DEMO;
after commit
0
 hidden batch(es)