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
Post a Comment