Add several rows in one statement.
Section: INSERT, UPDATE, and DELETE
Insert multiple rows
sql
sql
INSERT INTO roles (role_id, role_name)
VALUES
(1, 'admin'),
(2, 'editor'),
(3, 'viewer');Explanation
Multi-row INSERT is concise and often more efficient than repeated single-row inserts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing INSERT, UPDATE, and DELETE