Good morning
I'm doing tests on how to convert a ns. application that works on Oracle to PostgreSQL.
In particular, I am checking the following settings:
What is the difference between: ANSI, ANSI_ESCAPE. PB ?
Example in PostGreSQL:
jo in ANSI_ESCAPE
SELECT azazienda.aztoken,
afassofiscal.aftoken
FROM {oj afassofiscal LEFT OUTER JOIN azazienda ON afassofiscal.cdazie = azazienda.cdazie}
afassofiscal.aftoken
FROM {oj afassofiscal LEFT OUTER JOIN azazienda ON afassofiscal.cdazie = azazienda.cdazie}
jo in ANSI
SELECT afassofiscal.aftoken,
azazienda.aztoken
FROM afassofiscal LEFT OUTER JOIN azazienda ON afassofiscal.cdazie = azazienda.cdazie
azazienda.aztoken
FROM afassofiscal LEFT OUTER JOIN azazienda ON afassofiscal.cdazie = azazienda.cdazie
jo inPB
SELECT afassofiscal.aftoken,
azazienda.aztoken
FROM {oj afassofiscal LEFT OUTER JOIN azazienda ON afassofiscal.cdazie = azazienda.cdazie}
SELECT afassofiscal.aftoken,
azazienda.aztoken
FROM {oj afassofiscal LEFT OUTER JOIN azazienda ON afassofiscal.cdazie = azazienda.cdazie}
What is the difference between ANSI_ESCAPE and PB ? Look the same.
What is the difference between ANSI_ESCAPE and ANSI ? it's just a matter of syntax? Which one is the best? Which one should you choose?
Example in Orale:
jo in ANSI_ESCAPE
unplanned option
jo in ANSI
SELECT assofiscal.cdfisc,
azienda.cdazie
FROM assofiscal RIGHT OUTER JOIN azienda ON assofiscal.cdazie = azienda.cdazie
SELECT assofiscal.cdfisc,
azienda.cdazie
FROM assofiscal RIGHT OUTER JOIN azienda ON assofiscal.cdazie = azienda.cdazie
jo inPB
SELECT assofiscal.cdfisc,
azienda.cdazie
FROM assofiscal,
azienda
WHERE ( assofiscal.cdazie = azienda.cdazie (+))
SELECT assofiscal.cdfisc,
azienda.cdazie
FROM assofiscal,
azienda
WHERE ( assofiscal.cdazie = azienda.cdazie (+))
Why is PB option different from Oracle and PostgreSQL?
If my application needs to be compatible with both databases, I have to choose ANSI ?
Is it just a jo problem?
thank you early for the answers
Gimmy
it should default to ANSI.
i would get rid of PB option entirely, same with ansi_escape.
does anyone use any settings other than ansi?
Ignore the other options as they exist solely to "keep legacy code intact".