一个简单的查找!请多多指导! TRY:select @sql = 'select * from table where content in )'+@t+')'exec(@sql) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 TRY:select @sql = 'select * from table where content in ('+@t+')'exec(@sql) 借问exec 和 executesql 有什么区别??declare @sql varchar(8000)select @sql = 'select * from table where content in ('+ @t +')'executesql(@sql) execute就是exec。但没有executesql。 无法启动sql server服务 sql server 数据文件修改 求这样一条sql语句:总数除以12条记录? 这个查询语句怎么写? SQL服务器上面有四个选项,它们的作用是什么啊》? 超出变量最大容量 一句语句可以多用吗 一弱智问题:使用查询分析器插入数据时提示"常量、表达式或变量"为什么? 如何获得增量数据?? 请问,我想用1~2台客户端电脑模拟测试SQL SERVER并发的能力,请问是否可以?应该是个什么思路?谢谢! 看看这sql语句,有问题吗? 如何查知SQL SERVER数据库用户名和密码,步骤是何? 在线给分
select @sql = 'select * from table where content in ('+@t+')'
exec(@sql)
declare @sql varchar(8000)
select @sql = 'select * from table where content in ('+ @t +')'
executesql(@sql)
但没有executesql。