How To Use Delete Statement In OraclePLSQL
Description
This statement is used to delete a single record or multiple records from a table i.e. called delete statement in Oracle/PLSQL.
Syntax
The syntax for the delete statement is given below-
- Delete from table
- where conditions;
The example, given below, has one condition in the delete statement.
- Delete from department
- where Dept_name= 'sales';
Example
This example has two conditions in the delete statements.
- delete from department
- where Dept_name= 'SALES DEPT'
- AND Dept_id>20;
Summary