pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedoracle decode()
2+ messages / 2 participants
[nested] [flat]
* oracle decode()
@ 2004-03-03 10:48 Andreas Schmitz <a.schmitz@cityweb.de>
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schmitz @ 2004-03-03 10:48 UTC (permalink / raw)
To: pgsql-sql
Hello,
is there any equivalent for ORACLEs decode() in pl/pgsql ?
regards,
-Andreas
--
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: oracle decode()
@ 2004-03-03 12:51 Richard Huxton <dev@archonet.com>
parent: Andreas Schmitz <a.schmitz@cityweb.de>
0 siblings, 0 replies; 2+ messages in thread
From: Richard Huxton @ 2004-03-03 12:51 UTC (permalink / raw)
To: pgsql-sql
On Wednesday 03 March 2004 10:48, Andreas Schmitz wrote:
> Hello,
>
> is there any equivalent for ORACLEs decode() in pl/pgsql ?
Is that the function that works like CASE?
CASE WHEN x=1 THEN 'ONE' WHEN x=2 THEN 'TWO' END
See the reference manual for syntax (conditional functions/operators iirc).
--
Richard Huxton
Archonet Ltd
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-03-03 12:51 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-03 10:48 oracle decode() Andreas Schmitz <a.schmitz@cityweb.de>
2004-03-03 12:51 ` Richard Huxton <dev@archonet.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox