oracle top 替代方案
清泛原创
由于Oracle不支持select top 语句,所以在Oracle中经常是用order by 跟 rownum 的组合来实现select top n的查询。
select * from (
select * from xxx order by xx
) where rownum <= 100
等同于SQL:select top 100 * from xxx order by xx。
上一篇:【Mysql】报mysqli_real_connect(): (HY000/2002)错误
下一篇:SQL中使用update inner join和delete inner join;Oracle delete join替代方案