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 -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -