Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: single quote in instr Oracle PL/SQL
Barbara Boehmer wrote:
> You can TRANSLATE the special characters to just one special character,
> then REPLACE that one special character with an empty string. You can
> use that method directly in SQL or create a user-defined function, as
> demonstrated below
>
But it's totally unnecessary. We can safely assume that there will be at least one character that's not special (else what would be so special about special characters?) . Just make sure that one 'keep' character appears in the to_string so that the last parameter is not null, and be done with it.
Cheers
Holger
Received on Tue May 24 2005 - 05:13:20 CDT