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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -