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
本文介绍了在不同类型的数据库中如何进行前10条记录的查询操作,包括SqlServer、Informix、Oracle及MySql等,提供了具体的SQL语句示例。
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

被折叠的 条评论
为什么被折叠?