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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -