首页 > 数据库技术 > 详细

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

时间:2015-09-21 17:26:06      阅读:416      评论:0      收藏:0      [点我收藏+]

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‘;

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

原文:http://www.cnblogs.com/dtest/p/4826312.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!