sportdog

导航

 

top数为变量时

declare @intTop int
set @intTop=2
print @intTop

--set rowcount @intTop
--select * from [dbo].[Demo_Values]
select top @intTop * from [dbo].[Demo_Values]

posted on 2018-11-27 10:45  sportdog  阅读(114)  评论(0编辑  收藏  举报