Oracle Mysql SqlServer查看表的最后10行
Oracle:
select * from (select * from temp order by rownum desc) where rownum <=10
Mysql:
select * from temp order by c1 desc limit 10;
SqlServer:
SELECT TOP 1 * FROM temp ORDER BY c1 DESC;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29500582/viewspace-1403079/
,如需转载,请注明出处,否则将追究法律责任。