pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chester c young <chestercyoung@yahoo.com>
To: sql pgsql <pgsql-sql@postgresql.org>
Subject: returning on inserts
Date: Thu, 27 Mar 2008 12:24:05 -0700 (PDT)
Message-ID: <13907.84888.qm@web54307.mail.re2.yahoo.com> (raw)

insert into t1( c1 )
select c1 from t2
returning t1.c1, t2.c2;

ERROR: missing FROM-clause entry for table "t2"

is there any way to make this work?


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



Message-ID: <13907.84888.qm@web54307.mail.re2.yahoo.com>
Permalink:  ../13907.84888.qm@web54307.mail.re2.yahoo.com/
Also on:    postgresql.org/message-id/13907.84888.qm@web54307.mail.re2.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: chestercyoung@yahoo.com
  Subject: Re: returning on inserts
  In-Reply-To: <13907.84888.qm@web54307.mail.re2.yahoo.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