How to match a whole word in MySQL with SQL

1 Answer

0 votes
SELECT * 
FROM test 
WHERE keyword REGEXP '[[:<:]]web[[:>:]]'

-- run:

-- id 	keyword
-- 5 	web hosting services secure
-- 6 	web hosting secure
-- 7 	web hosting secure services
-- 10 	web hosting
-- 12 	web services
-- 14 	web services secure 
-- ....


answered Sep 11, 2018 by avibootz
edited Sep 12, 2018 by avibootz
...