select top n * from table
sql中支持
oracle中不支持
被rownum代替
比如
select * from table where rownum=1
本文对比了SQL中TOP N查询在不同数据库系统中的实现方式。介绍了在Oracle中使用ROWNUM代替TOP N的功能,并通过具体示例说明如何仅选取第一条记录。
select top n * from table
sql中支持
oracle中不支持
被rownum代替
比如
select * from table where rownum=1