pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Davis <mdavis@sevainc.com>
To: 'Christopher Audley' <Christopher.D.Audley@jhu.edu>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: RE: Oracle to PostgreSQL help:  What is (+) in Oracle select?
Date: Fri, 16 Mar 2001 16:23:31 -0700
Message-ID: <01C0AE35.727035B0.mdavis@sevainc.com> (raw)

This is Oracle's syntax for an outer join.  Try this in PostgreSQL

SELECT o.* from one o LEFT JOIN two t ON o.key = t.key;

-----Original Message-----
From:	Christopher Audley [SMTP:Christopher.D.Audley@jhu.edu]
Sent:	Friday, March 16, 2001 3:57 PM
To:	pgsql-sql@postgresql.org
Subject:	Oracle to PostgreSQL help:  What is (+) in Oracle select?

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?

Thanks
Chris


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly




view thread (4+ messages)  latest in thread

Message-ID: <01C0AE35.727035B0.mdavis@sevainc.com>
Permalink:  ../01C0AE35.727035B0.mdavis@sevainc.com/
Also on:    postgresql.org/message-id/01C0AE35.727035B0.mdavis@sevainc.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: mdavis@sevainc.com, Christopher.D.Audley@jhu.edu
  Subject: Re: Oracle to PostgreSQL help:  What is (+) in Oracle select?
  In-Reply-To: <01C0AE35.727035B0.mdavis@sevainc.com>
  References: <01C0AE35.727035B0.mdavis@sevainc.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