原SQL是不能执行的:
select * from 表A where 字段A in (select 逗号分隔的字段B from 表B where 条件)
select * from 表A where 字段A in (select 逗号分隔的字段B from 表B where 条件)
解决方案:
select b.*
from (select 逗号分隔的字段B from 表B where 条件) a
left join 表A b on 逗号分隔的字段B like '%'+字段A+'%'