在sql中使用参数化的Top,Top后面的参数要用括号括起来。
例如:
select top (@ts) ID, [Type], Title, Content, LinkMan, Tel, CheckState, [Date] from tb_Frinfo where [Type] = @type order by [Date] Desc
时间: 2024-10-15 08:24:37
在sql中使用参数化的Top,Top后面的参数要用括号括起来。
例如:
select top (@ts) ID, [Type], Title, Content, LinkMan, Tel, CheckState, [Date] from tb_Frinfo where [Type] = @type order by [Date] Desc