DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Look for a % in a string with "like"

  1. #1
    Join Date
    Aug 2000
    Location
    Ny
    Posts
    105
    Does any one know how can I find the character "%" in a string using "Like".
    Normaly the "%" is a wild-card character.

    Thanks.

  2. #2
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    You should use escape character:

    SELECT last_name FROM employees
    WHERE last_name LIKE '%A\_B%' ESCAPE '\';

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width