oracle取前十条记录
select rownum,t.* from tableName t where rownum <=10
mysql取前十条记录
select t.* from tableName t where limit 10
sql取前十条记录
select top 10 t.* from tableName t
本文介绍了如何使用不同的SQL方言来获取表中的前10条记录。包括Oracle, MySQL及通用SQL的方法。
oracle取前十条记录
select rownum,t.* from tableName t where rownum <=10
mysql取前十条记录
select t.* from tableName t where limit 10
sql取前十条记录
select top 10 t.* from tableName t
4528

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