Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    4

    Unanswered: Problem with Like filter.

    I have a table with a varchar in it.

    Inside the var char it contains data like:

    Variable.[32] + Variable.[432] * (Variable.[333] / Const.[21])

    What I am trying to do is search for all records that are using variable 333

    I was trying:

    SELECT * FROM my_table WHERE data_field LIKE '%Variable.[333]%'

    However, that returning nothing.

    I am going to guess that the [ ] need to be escape or something, but I don't know if thats really the issue.

    Doing:

    SELECT * FROM my_table WHERE data_field LIKE '%Variable%'

    Works.

    Thanks in advance,
    Rich

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    You are correct, you need to review the LIKE documentation for the details.

    -PatP

  3. #3
    Join Date
    Feb 2008
    Posts
    4
    Thank you for pointing me in the right direction.

    Got everything working!

    Thanks again,
    Rich

Posting Permissions

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