Using MySQL 5, I have around 100000 rows in a table.
In addition to the alphanumerical characters some of the rows have other characters like special characters for a column, let's say column1.
I want to find them.
The solution which came to my mind is writing a query like this:
- The inner query replaces the alphanumerical characters with ''
- The outer query is: SELECT * FROM (INNER QUERY) WHERE column1 NOT LIKE ''
Inner query:
SELECT REPLACE(...(REPLACE(REPLACE((column1 ,'a',''...
It is hard to use REPLACE for 26 letters and 10 digits one by one in the query. Is there any way to do it a better way?
Appreciate for any idea or if there is a better solution for my requirement.