以显示10行为例:
1.db2中,使用fetch first字句
select * from emp fetch first 10 rows only
2.MySQL和PostgreSQL中,使用Limit
select * from emp limit 10
3.在Oracle中,在where字句中通过使用ROWNUM来限制行数
select * from emp where rownum<=10
3.SQL Server中,使用关键字TOP,限制返回的行数
select top 10 * from emp