select top在不同資料庫中的使用用法:
1. oracle資料庫
select * from table1 where rownum<=n
2. infomix資料庫
select first n * from table1
3. db2資料庫
select * row_number() over(order by col1 desc) as rownum where
rownum<=n
或者
select column from table fetch first n rows only
4. sql server資料庫
select top n * from table1
5. sybase資料庫
set rowcount n
go
select * from table1
6. mysql資料庫
select * from table1 limit n
7. foxpro資料庫
select * top n from table order by column
資料引用:http://www.knowsky.com/398735.html