Section: insert, update, and delete

Insert one row

sql
sql
INSERT INTO users (email, full_name) VALUES ('ava@example.com', 'Ava Stone');
Explanation

Always listing target columns makes inserts safer during schema changes.

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
Insert multiple rows
Create several rows in one statement.
OpenIn sheetsqlsame section
Update matching rows
Change values for rows that match a filter.
OpenIn sheetsqlsame section
Delete matching rows
Remove rows that match a predicate.
OpenIn sheetsqlsame section
Truncate a table
Remove all rows quickly and reset auto-increment counters.
OpenIn sheetsqlsame section
Upsert with ON DUPLICATE KEY UPDATE
Insert a row or update it when a unique key already exists.
OpenIn sheetsqlsame section
Replace a row using REPLACE
Insert or delete-and-insert based on unique key conflicts.
OpenIn sheetsqlsame section