pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Matt <matthew.berardi@weilpublishing.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: multiple primary keys and reference
Date: Mon, 10 Jun 2002 17:40:20 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0206101735410.11308-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <3D0110C1.5020908@weilpublishing.com>
CREATE TABLE Parts(
PartNo varchar(20) NOT NULL,
machtypesid int4 NOT NULL,
BestPrice decimal(100,2),
Comment text,
PRIMARY KEY (PartNo,machtypesid));
CREATE TABLE MachDefs(
defid serial NOT NULL UNIQUE PRIMARY KEY,
Description text,
PartNo varchar(20),
MachTypeID int4 NOT NULL,
FOREIGN KEY (PartNo,MachTypeID) REFERENCES Parts (PartNo,machtypesid));
--
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel: +30-10-8981112
fax: +30-10-8981877
email: achill@matrix.gatewaynet.com
mantzios@softlab.ece.ntua.gr
view thread (3+ messages) latest in thread
Message-ID: <Pine.LNX.4.44.0206101735410.11308-100000@matrix.gatewaynet.com> Permalink: ../Pine.LNX.4.44.0206101735410.11308-100000@matrix.gatewaynet.com/ Also on: postgresql.org/message-id/Pine.LNX.4.44.0206101735410.11308-100000@matrix.gatewaynet.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 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: achill@matrix.gatewaynet.com, matthew.berardi@weilpublishing.com Subject: Re: multiple primary keys and reference In-Reply-To: <Pine.LNX.4.44.0206101735410.11308-100000@matrix.gatewaynet.com> References: <3D0110C1.5020908@weilpublishing.com> <Pine.LNX.4.44.0206101735410.11308-100000@matrix.gatewaynet.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