Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Identify invalid characters in table.

Re: Identify invalid characters in table.

From: Carlos <miotromailcarlos_at_netscape.net>
Date: Fri, 15 Jun 2007 01:56:20 -0700
Message-ID: <1181897780.314855.5980@n2g2000hse.googlegroups.com>


On 15 jun, 10:15, t538449 <kenneth.osenbr..._at_telenor.com> wrote:
> Hi,
>
> I am trying to identify invalid characters in a table. The valid
> characters are stored within a table which the table I want to find
> invalid characters are matched upon. The table pub_symbol consists of
> all valid characters (chr(value)), while the table address is the
> table I want to check. This is what I have so far:
>
> select addrsurname from address minus select a.addrsurname from
> address a, pub_symbol p where instr(a.addrsurname, p.pub_symbol)<>0;
>
> This (I hope) will give me all addrsurname which contain any
> characters not listed in pub_symbol. Does anyone have any propositions
> on how to optimize this,- or another way of achieving the result on?
>
> Thanks,
> Kenneth

You might want to take a look at TRANSLATE function.

HTH. Cheers.

Carlos. Received on Fri Jun 15 2007 - 03:56:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US