Re: Oracle to PostgreSQL help: What is (+) in Oracle select?

From: "Joe Conway" <jconway2(at)home(dot)com>
To: "Christopher Audley" <Christopher(dot)D(dot)Audley(at)jhu(dot)edu>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Oracle to PostgreSQL help: What is (+) in Oracle select?
Date: 2001-03-17 00:02:27
Message-ID: 015c01c0ae75$8e63b680$7cd310ac@jecw2k1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> A select is done across two tables, however when joining the foreign
> key, the right hand side of the equallity has (+) appended
>
> SELECT o.* from one o, two t where o.key = t.key(+)
>
> Does anyone know what this does and how I can reproduce the select in
> PostgreSQL?

Hi Chris,

The (+) in Oracle is for an outer join. See
http://www.postgresql.org/devel-corner/docs/postgres/sql-select.html , in
the join-type description, left outer join. Outer joins are only available
in PostgreSQL 7.1, which is currently in the late stages of beta testing.

Hope this helps,

Joe

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Mello 2001-03-17 00:41:49 Re: [SQL] Contribute to the PL/pgSQL CookBook !!
Previous Message Richard Poole 2001-03-16 23:35:31 Re: Oracle to PostgreSQL help: What is (+) in Oracle select?