I'm trying to learn how to use BEGIN ... COMMIT
in SQLite. I'm trying this code:
BEGIN
INSERT INTO fields VALUES ('field1')
COMMIT;
but it fails with
Error: near "INSERT": syntax error
When using just the insert statement, it succeeds, though:
INSERT INTO fields VALUES ('field1');