SIMPLE SELECT ?

  • Is there anyway to do

    where table.col LIKE IN ('DOG%', 'CAT%,',GOAT%)

    THANKS

  • No not like that. Just

    col like 'x%' OR

    col like 'x%' OR

    ...

    However if it is a large list you could dump each to a table and join this table to the table in question and try

     

    FROM myTable M INNER JOIN likeTable L ON M.col LIKE L.col + '%'

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

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