i am trying to query from database asking for data with this filter. i want that the word which is after not like not to exist in my result query. but my result is still having the that word.
select * from table where titel not like '%word-word%'
but i am still getting the query where the title has the word 'word-word'.
do i have to escape the query for '-'
is there any difference between like and not like in this sense ?
nothing wrong with your query. check whether your table contains ‘word-word’.
try this