两个结果之间要用逗号分割
你的可以写为
select * from tab
where id in (select xid frmo tabl) or id in ('1','2', '3', '4')
你那样写语法不对
你是不是想问,例如:
select xid from tabl 查出来的数据是 '123','234','432'
然后select * from tab where id in ('123','234','432')这个查询不出来
如果是你把查出来的数据发出来看看呢
select * from tab where id in (select XID from tab1);
依稀觉得里面有点小问题,想不起来了