Insert a row

Name the columns so the query keeps working when the table gets a new column.

SQL · Insert a rowBeginner
INSERT INTO customers (name, email, city, created_at)
VALUES ('Zara', 'zara@x.com', 'Multan', NOW());

SELECT LAST_INSERT_ID();          -- the new auto-increment id
insertcreate