|
SQL DELETE FROM
Sometimes rather than updating, we wish to get rid of records from the table. To do so, we can use the DELETE FROM command. The syntax for this is
DELETE FROM "table_name"
It is easiest to use an example. Say we currently have a table as below:
Table Store_Information
and we decide not to keep any information on Los Angeles in this table. We type the following SQL:
DELETE FROM Store_Information
The resulting table would look like
Table Store_Information
|