日期:2014-05-16  浏览次数:20541 次

java基础之面试篇六-oracle,mysql,sqlserver,db2取前十条记录sql语句
1.oracle:   
select * from table1 where rownum <= 10;
2.sql server: 
  select top 10 * from table1
3.mysql:  
select * from table1 limit 10
4.db2:  
select * from table1 fetch first 10 rows only