pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard NAGY <richard@presenceweb.com>
To: pgsql-sql@postgresql.org
Subject: translation from ORACLE
Date: Mon, 15 May 2000 19:09:25 +0200
Message-ID: <39202F45.6B31B508@presenceweb.com> (raw)


I try to translate a database from Oracle to Postgress. for this reason, i search 3 functions :
nvl, max and to_char.

ORACLE : ex : EXEC SQL SELECT nvl (attribut, "defaultString") INTO : vattribut FROM ... : if there
is no attribut satisfying the select vattribut will be equal to attribut , else vattribut will be
equal to attribut.
                        EXEC SQL SELECT max(attribut) .... will give the bigger attribut.
                        EXEC SQL SELECT to_char(attribut, 'DD-MM-YYYY') ... attribut will be a
string in the form '01-02-99'

I didn't find this 3 functions in Postgress, can you give me them and their syntax. thanks.
--
Christine





Message-ID: <39202F45.6B31B508@presenceweb.com>
Permalink:  ../39202F45.6B31B508@presenceweb.com/
Also on:    postgresql.org/message-id/39202F45.6B31B508@presenceweb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: richard@presenceweb.com
  Subject: Re: translation from ORACLE
  In-Reply-To: <39202F45.6B31B508@presenceweb.com>
  References: <39202F45.6B31B508@presenceweb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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