I've a Query. Is there any built-in function or any other method associated with MySQL, which will return rows that contains EXACT word in the database table field? I'm aware that with MySQL LIKE operator, You can search for a specified pattern in a column which will match a string value against a pattern string containing wild-card characters. But With MySQL LIKE clause, It'll return substring entries too.
Eg.
Suppose 3 column values are like below:
1. "Take another shot of courage"
2. "The End of This age is Not Yet"
3. "Employers can obtain this wage rate by submitting a request"
I want to retrieve all rows in which column value contains the exact word 'age'
If we prepare query like this
SELECT * FROM sometable WHERE somefield LIKE '%age%'
It'll return all three rows. But my intention is only to get the second row. How do we achieve this? Thanks In Advance.
Cheers,
JENSon.