不同数据库限制返回的行数的关键字如下:
①db2
select * from table fetch first 10 rows only;
②oracle
select * from table where rownum<=10;
③mysql
select * from table limit 10;
④sqlServer
select top 10 * from table;
原文地址:https://www.cnblogs.com/baxianhua/p/9105372.html
时间: 2024-10-13 12:21:53