From: Zhidian Du <duzhidian@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: No promany key in parent table, how to use delete cascade?
Date: Thu, 07 Nov 2002 23:19:09 -0700
Message-ID: <F1364A2DreBBsQwY6YH00000812@hotmail.com> (raw)
Dear All,
I want to dreate a delete cascade in children tables. The primary key of
parent table is oid, so when I create parent table, there is no apparetly
key word "primary key". The problem jumps out.
When I create child table using columnn constraint on delete, the SQL says:
"PRIMARY KEY for referenced table "parent" not found"
I do not need to specify the primary key since I am using oid. How can I
get around this problem?
Thanks.
Zhidian Du
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
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
Subject: Re: No promany key in parent table, how to use delete cascade?
In-Reply-To: <F1364A2DreBBsQwY6YH00000812@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