Multiple queries in one transaction
Posted: 02.01.2007, 13:43
Is possible to put few inserts and updates in one transaction. SQLite code looks like this:
The same code doesn't work at FB (1.5/2.0). What I should change?
Code: Select all
with Query.SQL do
begin
Add('INSERT INTO abc VALUES (''aa'');');
Add('INSERT INTO abc VALUES (''bb'');');
Add('INSERT INTO abc VALUES (''cc'');');
Add('COMMIT;');
end;
Query.ExecSQL;