Sometimes we may wish to get rid of records from a table.
To do so, SQL Tutorial will guide how to use the DELETE FROM command, by the use of
SQL Delete From keyword
we can remove any record from the existing table in the database. The syntax for
SQL Delete Statement is as under
It is easiest to use an example. Say we currently have a table as below to
experiment with SQL Delete Statement.
Table
Employees_Salary
| FirstName |
Month |
Salary |
| Austin |
January |
1000$ |
| Austin |
February |
1100$ |
| Creston |
February |
1100$ |
| Kate |
February |
1100$ |
| Angela |
February |
1000$ |
| Bobbi |
February |
1200$ |
| Cute |
February |
1300$ |
Now the content of table would look like after deletion of records
Table
Employees_Salary
| FirstName |
Month |
Salary |
| Austin |
February |
1100$ |
| Creston |
February |
1100$ |
| Kate |
February |
1100$ |
| Angela |
February |
1000$ |
| Bobbi |
February |
1200$ |
| Cute |
February |
1300$ |