中国开发网: 论坛: 数据库: 贴子 244763
jesc
sql problem, about using 'in' statement!help~~
i want to show this:
select * from table1 where field in ('aa','bb')

======================================
declare @vchr varchar(100)
set @vchr ='aa','bb'
select * from table1 where field in (@vchr)

running display error....
==================================================
if not use exec(@sql), how to express ?

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录