今天遇到一个问题,使用游标时,在给游标填充值的时候,select 语句中带有 where查询条件,并且还有 in子句. 本来我是这样写的,试了很多次都不出结果,当然number in (304010,305013)是可以出结果的. ) ) set @zdcode='304010,305013' declare cur_id cursor for select Number from dbo.IM_Metadata where number in (@zdcode) open cur_id fe…