I have a table that has a column named ‘name’.
Example:
ID Name Other Field
1 that's x y
2 o-k x y
I want to be able to perform something like:
Select * FROM table WHERE Name like %thats%
And have the row with ID 1 as result, or execute:
Select * FROM table WHERE Name like %ok%
and have the row with ID 2 as result.
So far I only managed to execute:
SELECT *, REPLACE( Name , '.', '' ) AS Name FROM table
That one returns the whole table with the points replaced for the Name column.
Any ideas?
Thank you!
You can clean up the
Namestring in theWHEREclause: