agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: David Johnston <polobo@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to script inserts where id is needed as fk
Date: Sat, 9 Nov 2013 13:55:16 -0800 (PST)
Message-ID: <1384034116071-5777610.post@n5.nabble.com> (raw)
In-Reply-To: <527E968E.8010807@gmail.com>
References: <527D3F2A.6060504@gmail.com>
	<05069440-C45F-4763-81A8-E14B5CB1CCB5@excoventures.com>
	<527E968E.8010807@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

Michael Schmidt-2 wrote
> To extend my scenario a little bit i have a third level called 
> 'Incredient' and they need the Article id. I dont think this will work 
> anymore with the with clause. Any new approaches?

Why don't you just use a procedural language function?  plpgsql should be
sufficient for most requirements.

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-script-inserts-where-id-is-needed-as-fk-tp5777525p577...
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (6+ messages)  latest in thread

Message-ID: <1384034116071-5777610.post@n5.nabble.com>
Permalink:  ../1384034116071-5777610.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1384034116071-5777610.post@n5.nabble.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: polobo@yahoo.com
  Subject: Re: How to script inserts where id is needed as fk
  In-Reply-To: <1384034116071-5777610.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox