rodbc - sql in operator on multiple columns -


i have list of values , example id= ('10','20','30') want check if these values exisit in either columna, columnb or columnc

this have , works fine

  "select * table1 columna in", id 

what trying is

  "select * table1 (columna or columnb or columnc) in", id 

i getting bunch of errors, need syntax

try instead:

select * table1 columna in ('10','20','30') or                            columnb in ('10','20','30') or                            columnc in ('10','20','30') 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -