I have one query that returns multiple rows, and another query in which I want to set criteria to be either one of values from those multiple rows , so basicly I want the subquery to look something like this:
select *
from table
where id= (multiple row query);
Where multiple row query
returns multiple rows. So if the values from those rows are 1,2,3 then I want to set id to be 1 or 2 or 3.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…