oracle,where in,数据库语法

2025-03-26 01:18:29
推荐回答(4个)
回答1:

两个结果之间要用逗号分割
你的可以写为
select * from tab
where id in (select xid frmo tabl) or id in ('1','2', '3', '4')

你那样写语法不对

回答2:

你是不是想问,例如:
select xid from tabl 查出来的数据是 '123','234','432'
然后select * from tab where id in ('123','234','432')这个查询不出来

如果是你把查出来的数据发出来看看呢

回答3:

select * from tab where id in (select XID from tab1);

回答4:

依稀觉得里面有点小问题,想不起来了