Concepts in Focus
Database The database consists of a
player
table that stores the details of players who are a part of a tournament.player
table stores the name, age and score of players.Delete Rows
DELETE
clause is used to delete existing records from a table.Delete All Rows
Syntax
SQL
Example
Delete all the rows from the
player
table. SQL
Delete Specific Rows
Syntax
SQL
Example
Delete "Shyam" from the
player
table.
Note: We can uniquely identify a player by name.SQL
Warning
We can not retrieve the data once we delete the data from the table.
Drop Table
DROP
clause is used to delete a table from the database.Syntax
SQL
Example
Delete
player
table from the database.DROP TABLE player;