Recipe 4.13. Deleting Specific RecordsProblemYou wish to delete records meeting a specific criterion from a table. SolutionUse the DELETE command with a WHERE clause specifying which rows to delete. For example, to delete all employees in department 10: delete from emp where deptno = 10 DiscussionBy using a WHERE clause with the DELETE command, you can delete a subset of rows in a table rather than all the rows. |