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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Contains' in SQL?

Status
Not open for further replies.

ilovetorun

Programmer
Jun 4, 2001
5
US
I know that 'Like' in SQL can be used like 'Contains' in CFML if wildcards are attached to the keyword/text-string you're looking for. But I've recently found that 'Like' can't be used with 'ANY'. Is there a way to to a CFML-like 'Contains' in SQL?
 
Yep it's the function IN


WHERE fieldname IN (value1, value2, etc.)

Hope this helps

JNC73
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top