Oralce/MySql/SqlServer/Informix 查询前几行

SqlServer

 select top 10 * from tablename;

Informix

select first 10 * from tablename;

Oralce

select * from tablename where rownum<=10;

MySql

select * from tableName limit 10

 开发者博客www.developsearch.com

猜你喜欢

转载自keepwork.iteye.com/blog/1944759