pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Poole <richard.poole@vi.net>
To: Christopher Audley <Christopher.D.Audley@jhu.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: Oracle to PostgreSQL help:  What is (+) in Oracle select?
Date: Fri, 16 Mar 2001 23:35:31 +0000
Message-ID: <20010316233531.A10408@office.vi.net> (raw)
In-Reply-To: <3AB29A4A.8030303@jhu.edu>
References: <3AB29A4A.8030303@jhu.edu>

On Fri, Mar 16, 2001 at 05:57:14PM -0500, Christopher Audley wrote:
> I'm trying to modify an application which runs on Oracle to run against 
> PostgreSQL.  I'm currently stuck on a query that I can't recognize, it 
> doesn't look like standard 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?

It's an outer join. In Postgres it'd be

SELECT o.* from one left outer join two using ( key )

but it's new in 7.1 .

Richard



view thread (4+ messages)  latest in thread

Message-ID: <20010316233531.A10408@office.vi.net>
Permalink:  ../20010316233531.A10408@office.vi.net/
Also on:    postgresql.org/message-id/20010316233531.A10408@office.vi.net

 · 

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.poole@vi.net, Christopher.D.Audley@jhu.edu
  Subject: Re: Oracle to PostgreSQL help:  What is (+) in Oracle select?
  In-Reply-To: <20010316233531.A10408@office.vi.net>
  References: <3AB29A4A.8030303@jhu.edu> <20010316233531.A10408@office.vi.net>

* 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