inserting references

From: ktt <kestutis98(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: inserting references
Date: 2002-06-14 08:14:08
Message-ID: 20020614081408.46389.qmail@web13902.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a table, which references
values in other 3 tables.

I would like to insert values in
bananas, oranges and kivi tables
and insert their bananas_id,oranges_id,kivi_id,
country
in fruits table.

What are better methods for doing
this(exept LAST_INSERT_ID())?
Would be nice to use the most compact form.

sample tables scheme

----------- ---------- ---------- ----------

fruits bananas oranges kivi

----------- ---------- ---------- ----------

fruits_id bananas_id oranges_id kivi_id

bananas_id date_bn date_or date_kv

oranges_id ---------- ---------- ----------

kivi_id
country

-----------

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-06-14 08:25:19 Re: inserting references
Previous Message Jim Morcombe 2002-06-14 07:48:17 Help required with installing postgreSQL on SCO Openserver