Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where statement

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi all,

I like to know if ANSI SQL supports IN operation in Where statement like in Jet SQL.

Here's I used to do in Jet SQL
"Select * From [cid] IN ('031256','031267')"
in ANSI, I'm doing something like,
"Select * From cid = '031256' AND cid = '031267'"

Thanks,

 
Yes ...

select * from table where field in (val1, val2, ....)

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top