1 回答
互换的青春
TA贡献1797条经验 获得超6个赞
拿前10为例
ORACLE:
SELECT * FROM TABLE1 WHERE ROWNUM<=10
2. INFORMIX:
SELECT FIRST 10 * FROM TABLE1
3. DB2 :
SELECT * ROW_NUMBER() OVER(ORDER BY COL1 DESC) AS ROWNUM WHERE ROWNUM<=10
4. SQL SERVER :
SELECT TOP 10 * FROM TABLE1
5. SYBASE :
SET ROWCOUNT 10 GO SELECT * FROM TABLE1
6. mySql:
SELECT * FROM TABLE1 LIMIT 10
7. FOXPRO :
SELECT * TOP 10 FROM TABLE ORDER BY COLUMN
- 1 回答
- 0 关注
- 681 浏览
添加回答
举报
0/150
提交
取消