语句错误。帮忙看看

cngothic cngothic 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
程序执行提示@table未声明标量变量。监控SQL得到下面语句。麻烦朋友帮我纠正语法错误
谢谢

exec sp_executesql N'select top 50 U.U from @table S join user_temp U on S.sign = U.sign and S.P=(select top 1 P from @table where sign = U.sign and P like (''+ @P +%'') order by Sign desc, P asc) where s.P like (''+ @P +%'') order by orderby DESC',N'@table varchar(20),@P varchar(30)',@table='st',@P='cngothic'
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
cngothic
MS-SQL Server 34,876 成员 254,635 内容