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