Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Sql Code to Find Something
>
>
> Rene Nyffenegger wrote:
>> select email_addr from emx_table where instr(email_addr,'@') = 0;
The following statement gives you all email_addr's that have either no @ or more than one @ in it:
select
email_addr
from
email_addr
where
length(translate(email_addr,':@',':')) +1 <>
length( email_addr );
hth
Rene Nyffenegger
-- Projektleitung und Entwicklung in Oracle/C++/C# Projekten http://www.adp-gmbh.ch/cv.htmlReceived on Sun Mar 16 2003 - 04:32:51 CST