跪求一个触发器(存储过程)中的判断。
a表 字段b
b记录 1,2,3,4,5
当select b from a时选出来5个值。希望将这5个值都传入下面的判断中。
目前传入的值只能是最大的5
declare @ stringid char(40)
SELECT @stringid =b from aif(select c from d ) In (@stringid) 
then print 'yes'+@stringid目前执行结果为yes5
希望得到结果 yes1,2,3,4,5
c是int类型的
 @stringid 定义为varchar型的 if(select c from d ) In (1,2,3,4,5) 是可以运行的