SQL – Delete Statement

Table Of Contents:

  1. What Is Delete Statement?
  2. Syntax Of Delete Statement.
  3. Examples Of Delete Statement.

(1) What Is Delete Statement?

  • The DELETE statement is used to delete existing records in a table.

(2) Syntax Of Delete Statement?

Syntax:

DELETE FROM table_name WHERE condition;

(3) Examples Of Delete Statement?

Demo Data:

Example-1: Delete A Single Record

DELETE FROM Customers WHERE CustomerName='Alfreds Futterkiste';

Example-2: Delete All Record

DELETE FROM Customers;

Leave a Reply

Your email address will not be published. Required fields are marked *