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

Home -> Community -> Usenet -> c.d.o.tools -> Re: DECODE statement: is this a reasonable way to do things?

Re: DECODE statement: is this a reasonable way to do things?

From: alligatorsql.com <peter_at_fluxx.com>
Date: 6 Jul 2001 05:24:11 -0700
Message-ID: <d01b518e.0107060424.12798998@posting.google.com>

Hello ...

what do you think about

SELECT * FROM xtab
WHERE <column_name> = DECODE(p_newflag, 'Y', 17, <column_name>)

With this technique the length of the column_name does´nt matter ...

Greetings
Manfred Peter
(Alligator Company)
www.alligatorsql.com Received on Fri Jul 06 2001 - 07:24:11 CDT

Original text of this message

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