DELETE Statement:
It is used to delete existing records from a table. It can delete all records from a table if where condition is not given and if where condition is given than it will delete selected records which will meet the condition.
Syntax for deleting particular rows as per the condition:
DELETE FROM tablename WHERE (condition);
Syntax for deleting all records:
DELETE FROM tablename;
Example:
DELETE FROM Employee;
The above query will delete all records from Employee table.
DELETE FROM Employee WHERE EmpID =106;
The above query will delete those records from Employee table whose EmpId is 106 .
0 Comment(s)