MySQL manually add id in clause "WHERE IN (SELECT ...)" -
i have query:
select * t1 child_id in (select child_id t2 parent_id='1234') or parent_id='1234'
is possible this:
select * t1 child_id in ( (select child_id t2 parent_id='1234') union '5678' )
the union
keyword gives error message , tried searching on google it's hard find when search "mysql concat in"
i hope question clear
yes, this:
select * t1 child_id in ( select child_id t2 parent_id='1234' union select 5678 )
Comments
Post a Comment