Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Help with like in sql

$
0
0

Hi all,

    I am having an issue with like statement with full text search

My data : BEAN PEELER

 SQL STATEMENT:  Select * from table where col1 like '%[^a-z]peeler[^a-z]%' 

doesn't give all the results which has peeler in it (for example the above example)

instead if i use this statement

 Select * from table where col1 like '%peeler%' it returns all the rows.

But, i need to check the exact word search and not subset of it.

My problem is how is my query able to detect few rows which has peeler in it but not all?  please help


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>