Oracle 查询出来的数据取第一条

Oracle 查询出来的数据取第一条

---------------------------------------------------------------------------

转载自:http://www.itpub.net/thread-246442-1-1.html

 

select * from (select * from <table> order by <key>) where rownum=1;

select * from (select * from <table> order by <key> desc) where rownum=1;

 

delete from tbl where a='a' and b='b' and c='c';

posted @ 2015-09-21 15:25  一世飛扬  阅读(13717)  评论(1编辑  收藏  举报