sql取前几条数据

2024-11-13 09:51:11
推荐回答(4个)
回答1:

如果是SQL SERVER的话SELECT TOP 5 * FROM TABLE
如果是MY SQL的话,select * from table limit m,n

回答2:

select * from TABLE where ROWNUM <= 5;

回答3:

select * from table up to 5 rows.

回答4:

SELECT TOP 5 * FROM TABLE