From: Zhidian Du <duzhidian@hotmail.com>
To: pgsql-php@postgresql.org
To: pgsql-sql@postgresql.org
To: sszabo@megazone23.bigpanda.com
Subject: Parent table has not oid?
Date: Sat, 09 Nov 2002 23:04:05 -0700
Message-ID: <F61oWoCaNCnFjtCEhgv00004919@hotmail.com> (raw)
Dear All:
Please disregerd my last email.
I want to create a delete cascade in children tables. The primary key of
parent table is oid.
CREATE TABLE Link (
Protein_ID oid
CONSTRAINT one
REFERENCES Protein (oid)
ON DELETE CASCADE,
Link varchar(128)
);
Create child table is ok.
When I insert a record into this child table, it says
"ERROR: constraint one: table protein does not have an attribute oid"
Why?
Thanks.
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
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: duzhidian@hotmail.com, pgsql-php@postgresql.org, sszabo@megazone23.bigpanda.com
Subject: Re: Parent table has not oid?
In-Reply-To: <F61oWoCaNCnFjtCEhgv00004919@hotmail.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