Zeroanarchy
Technical User
Hi,
I have been searching Tek-tips for a method to validate an email address that contains only numeric values before the @ symbol and after the @ symbol in a select query.
I was hoping that a method existed where by if only numeric values appeared before or after the @ symbol I could remove them from the list.
From what I understand Oracle does not have a method to check for only numeric.
I was wondering if instead one was able to sum the values before or after the @ symbol and if an alpha character existed within the sum then an error would occur thus returning '0' allowing me to eliminating the values > than '0'.
I have tried
length(translate(T_MEMBERSHIP_DETAILS.ADDR_EMAIL,'A0123456789','A'))is not null
but this only seems to work on values that do not contain the @ symbol.
Any ideas appreciated.
ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.