From: Thomas SMETS <tsmets@altern.org>
To: psql sql <pgsql-sql@postgresql.org>
Subject: References to SERIAL
Date: Sat, 30 Dec 2000 17:39:32 +0100
Message-ID: <3A4E0FC4.4D9EB1F8@altern.org> (raw)
Hi,
If i create a "internal pk" buy defining on a table a field SERIAL.
How do I reference this field in the other table to set the field
possible value ?
create table book (
/* This is an internal primary key for the book description */
book_pk serial,
.... // End of Book def
);
create table books_authors (
??? // I want to reference the book pk & the author pk to be able to
make the X-ref ?
);
tx,
THomas
--
Sat Dec 30 15:23:42 CET 2000
Thomas SMETS e-mail : tsmets@altern.org
Av. de la Brabançonne 133 / 3 Tel. : +32 (0)2 742. 05. 94.
1030 Bruxelles
======= Quote of the Day =========
"In the long run, every program becomes rococo, and then rubble."
-- Alan Perlis
========= End of Quote ===========
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: tsmets@altern.org
Subject: Re: References to SERIAL
In-Reply-To: <3A4E0FC4.4D9EB1F8@altern.org>
References: <3A4E0FC4.4D9EB1F8@altern.org>
* 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