Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: reverse decode?
C Chang wrote:
> Is there something like reverse-decode function in side SQL or PL/SQL?
> After I use the decode to get the distinct data, I want to reverse it to
> find out what is the original data is. Thanks ahead.
>
> CC
On its face ... that is impossible for any language to do: Unless you want to write a bunch of "IF" statements.
The solution to what you suggest is to forget DECODE and just build a translation table.
Daniel A. Morgan Received on Fri May 11 2001 - 08:58:30 CDT
![]() |
![]() |