Example 1
Insert three rows in one statement
One INSERT statement creates all three rows, then the follow-up query verifies the final state.
Source table data Rows loaded before the example query runs.
Setup
CREATE TABLE teams (id INT, name VARCHAR(50));Validated query Shared across supported engines.
SQL
INSERT INTO
teams (id, name)
VALUES
(1, 'Alpha'),
(2, 'Bravo'),
(3, 'Charlie');
SELECT
id,
name
FROM
teams
ORDER BY
id;Expected result Returned rows for the shared example.
| id | name |
|---|---|
| 1 | Alpha |
| 2 | Bravo |
| 3 | Charlie |
Each engine supports the same multi-row insert form used here.