Alternative DELETE Command, Using a Subquery

select *
from salgrades;
GRADE LOWERLIMIT UPPERLIMIT BONUS
----- ---------- ---------- ----------
1 700 1200 0
2 1201 1400 50
3 1401 2000 100
4 2001 3000 200
5 3001 9999 500
delete from (select *
from salgrades
where grade = 5);
1 row deleted.

你可能感兴趣的:(Alternative DELETE Command, Using a Subquery)