各數據庫取前十條數據的方法

db2:        select * from tab fetch first 10 rows only   oracle:       select * from tab where rownum <=10   sqlserver:       select top 10 * from tab   mysql:       select * from tab limit 10
相關文章
相關標籤/搜索