I need to search table field contains special characters. I found a solution given here something like:
SELECT *
FROM `tableName`
WHERE `columnName` LIKE "%#%"
OR `columnName` LIKE "%$%"
OR (etc.)
But this solution is too broad. I need to mention all the special characters. But I want something which search something like:
SELECT *
FROM `tableName`
WHERE `columnName` LIKE '%[^a-zA-Z0-9]%'
That is search column which contains not only a-z, A-Z and 0-9 but some other characters also. Is it possible with MYSQL