I am trying to select all rows from a table where column contains an element from a list: Something like
Select * from `table` where `column` (contains anything from {£,$,%,^,&,...,/})
This is basically an illegal character check.
Can anyone help?
Thanks
For MySQL you may use REGEXP
or RLIKE
to check specific column for pattern matching. In your case following example might work:
SELECT * FROM `table` WHERE `column` REGEXP '[\£\$\%\^\&]';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With