INSERT one row
Adds one row. The columns in the list are the only ones this statement sets.
The numbers stay in this browser tab. Nothing you type is uploaded. Ads on this site are served by Google and may use cookies. Privacy policy.
INSERT INTO books (title, year) VALUES ('Field notes', 2026);
01
How this number is made
Adds one row. The columns in the list are the only ones this statement sets. The names books, authors, title, year and id are examples. Point them at your own tables. This page does not connect to a database.
02
Questions
Which SQL dialect is this?
The statements here are ordinary SQL that PostgreSQL, SQLite and MySQL all accept in this simple form. Quoting rules differ once names have spaces.
03