INSERT
Lesson 22 of 24 · SQL.Micro
INSERT adds new rows. List the columns, then the values in the same order.
INSERT INTO movies (title, genre) VALUES ('X', 'Drama');
Columns you leave out get their default (often NULL). An INTEGER PRIMARY KEY fills itself.
Check yourself
You insert a movie without a rating. What is stored in rating?
Add the movie Night Train: genre Drama, year 2025, 112 minutes, rating 7.4.
INSERT INTO movies (title, genre, year, minutes, rating)
Do it in the browser: a real SQL tool, a short mission and instant feedback. No install.
Start this lesson — free