From: | Richard NAGY <richard(at)presenceweb(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | translation from ORACLE |
Date: | 2000-05-15 17:09:25 |
Message-ID: | 39202F45.6B31B508@presenceweb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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
From | Date | Subject | |
---|---|---|---|
Next Message | sidster | 2000-05-16 03:39:21 | is multiple insert possible with posgress? |
Previous Message | Johann Spies | 2000-05-15 12:55:03 | sanity check fails |