Re: SQL INSERT/TRIGGER Help - Mailing list pgsql-sql

From A. Kretschmer
Subject Re: SQL INSERT/TRIGGER Help
Date
Msg-id 20071210064425.GA917@a-kretschmer.de
Whole thread Raw
In response to SQL INSERT/TRIGGER Help  ("Poovendran Moodley" <poovenm@gmail.com>)
Responses Re: SQL INSERT/TRIGGER Help
List pgsql-sql
am  Mon, dem 10.12.2007, um  8:36:44 +0200 mailte Poovendran Moodley folgendes:
> So obviously I need to insert into the table Observation_Value first before I
> can insert into table Observation, but how to I get the automatically generated
> foreign key?

You can simple use currval() for this.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


pgsql-sql by date:

Previous
From: "Poovendran Moodley"
Date:
Subject: SQL INSERT/TRIGGER Help
Next
From: "Poovendran Moodley"
Date:
Subject: Re: SQL INSERT/TRIGGER Help