I have a database table of customers where customer\'s phone numbers are stored in a field named phoneNumber.
customerId | customerName | phoneNumber
1
You can clean the phoneNumber before comparing it:
select * from table where replace(replace(replace(replace(phoneNumber,'('), ')'),' '), '-') = '0213383030';
I would, instead, add another column to the table that contains the phoneNumber but without the characters you don't want and then use that column for comparisons.