Skip to main content

COMMIT

Commit the current transaction, making all changes permanent.

Syntax

END is an alias for COMMIT.

Examples

BEGIN;
INSERT INTO articles VALUES (10, 'New Article', 'content', 'engineering', '2025-03-01', 0);
UPDATE articles SET views = views + 1 WHERE id = 1;
COMMIT;

See also

This page contains: