'select top 1 * from patient order by ID asc';什么意思(10分)

  • 主题发起人 主题发起人 wxcayap
  • 开始时间 开始时间
W

wxcayap

Unregistered / Unconfirmed
GUEST, unregistred user!
'select top 1 * from patient order by ID asc';
在SQL中top 1 是什么意思啊
top 1 起什么作用啊
 
top 1 意思是只取第一条纪录
 
SQLSERVER 语句
select top N * from table
查询前N条记录。
ORACLE 语句
select * from table where rownum <=N
查询前N条记录
 
后退
顶部