mysql - I tried to run this query but it shows Subquery return more than 1 row -


select name test.projectusermap p projectid in(     if(1 = 1, (         select projectid         test.projectusermap     ), (         select projectid         test.projectusermap         name = 'ravi'     )) ) 

you need this

select name   test.projectusermap p  projectid in(select projectid                       test.projectusermap                      ( 1 = 1 ) /*i assume boolean condition                                        placeholder testing                                        , won't this*/                             or name = 'ravi')  

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -