常用数据库取得前几行的方法

Oralce
select * from 表名 where rownum<=10;

SqlServer
select top 10 * from 表名;

MySql
select * from 表名 limit 10

Informix
select first 10 * from 表名;

posted on 2013-12-10 14:27  wcq  阅读(463)  评论(0编辑  收藏  举报

导航