I am new to SQL and having and issue. I want to delete from my database wherever somebody in the description column has the hashtag "#whatever". I was able to write the following query:
select id from table where description_field LIKE "%#whatever%" and user_id=333
But if i use the LIKE function here it will delete wherever it matches #whatever but I fear that it might delete something where it has #whateverANDthis.
How can I write a query that deletes a row wherever it ONLY contains "#whatever" in the description and not other variations like "#whateverANDthis" or "#whateverORthis".
I want to delete where it says:
"I had so much fun #whatever"
but not:
"I had so much fun #whateverAndWhatever"