Top Menu

Search This Blog

SQL DELETE Command

The DELETE command is used to delete records in a table.

Syntax:

Delete specifies which record or records that should be deleted.
DELETE FROM table_name
WHERE some_column_name=some_value

Delete All Record(Be careful when you can not use the WHERE clause, ALL records will be DELETE)
DELETE FROM table_name

As you see, we have like this "Candidate" table.















Example:

  DELETE FROM CANDIDATE where CandidateNumber='1269911'

Output:











DELETE FROM CANDIDATE

Output:

All record deleted.

Post a Comment

Designed by OddThemes | Distributed By Gooyaabi Templates