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

WHERE *field* = '%/%'...

Status
Not open for further replies.

bubbisthedog

Programmer
Oct 27, 2005
6
US
Hello, all. Great forum.

I'm querying a DB2 table, trying to filter records according to whether or not the, let's say, 'field' value, contains a forward slash (/). I've tried
Code:
WHERE *field* = '%\/\%'
using the backslash (\) to escape the (/) to no avail (records returned are 0). Could someone please suggest another option that I have?

Thank you kindly for any assistance!

Regards,

bubbis
 

You need to use the [tt]LIKE[/tt] operator instead of the [tt]=[/tt] sign

 
Thanks, Zathras! Can't believe I forgot about using "LIKE." I really appreciate the help!

Regards,

bubbis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top