how to look for _(underscore)?

  • Hi all,

    how can i query to see if i have _(underscore) in text such as

    select * from table

    where desc like '%_%'

    Thanks

    Pat

  • See BOL under heading "Pattern Matching in Search Conditions"

    Enclose the wildcard character in square brackets:

    Where Column LIKE '%[_]%'

  • pat (6/6/2008)


    Hi all,

    how can i query to see if i have _(underscore) in text such as

    select * from table

    where desc like '%_%'

    Thanks

    Pat

    select * from table

    where desc like '%\_%' ESCAPE '\'


    * Noel

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply