create table tbl(str varchar(20)); insert into tbl values('Hello world!'); select * from tbl; begin for i in 1 .. 2 loop insert into tbl values('1 world'); print 2 commit; end; select * from tbl;
Standard input is empty
Hello world! Hello world!
Error: near line 4: near "for": syntax error Error: near line 7: near "print": syntax error Error: near line 9: cannot commit - no transaction is active