On 06-09-15 15:26, Yuriy M. Kaminskiy wrote: > Luuk <luuk34 at gmail.com> writes: > >> DELETE FROM test; >> BEGIN; >> INSERT INTO test VALUES(1,'test1'); >> INSERT INTO test VALUES(3,'test3',3); >> INSERT INTO test VALUES(2,'test2'); >> COMMIT; >> SELECT * FROM test; > (and normally I'd expect to see DELETE *inside* transaction);
to quoot Simon: "But SQL is kind and opens a one-command transaction if you forget." ;) This was intentionally before the BEGIN, because i 'wanted' it to be in it's own transaction.