| Re: distinguish between "-" and "_" -
06-04-2007, 07:58 AM
On May 21, 3:23 pm, gordonb.vr...@burditt.org (Gordon Burditt) wrote:
> >When I run two different SQL requests, they return same result:
>
> >SELECT part_number, description FROM part WHERE part_number LIKE
> >"000-1_GB-01"
>
> >and
>
> >SELECT part_number, description FROM part WHERE part_number LIKE
> >"000-1-GB-01"
>
> Were you aware that _ is a wildcard character, so your first query
> could match "000-1QGB-01"? Solution: if you want a literal _, escape
> it.
I didn't know that. Thanks for your information. -Lei |