Syntax

SQL Delete Rows Syntax

In SQL, delete rows: removes rows from a table — DELETE FROM users WHERE id = 7;

Quick Answer

Syntax
DELETE FROM users WHERE id = 7;
SQLSyntax

Delete Rows

Code example
DELETE FROM users WHERE id = 7;

Removes rows from a table.

Tip: Always include WHERE, or every row is deleted.

Learn More

How to delete rows in SQL

  1. Open your SQL file or editor.
  2. Copy the example, then replace its sample names and values for your code.

Tip: Always include WHERE, or every row is deleted.

SQL Delete Rows Syntax

Use DELETE FROM users WHERE id = 7;.

Related Syntax References

Frequently asked questions

What is the SQL syntax for delete rows?

Use this pattern: DELETE FROM users WHERE id = 7;

Can I copy this SQL code example?

Yes. Use Copy code and adapt the example to your program.

Is this SQL syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify