No promany key in parent table, how to use delete cascade? - Mailing list pgsql-sql

From Zhidian Du
Subject No promany key in parent table, how to use delete cascade?
Date
Msg-id F1364A2DreBBsQwY6YH00000812@hotmail.com
Whole thread Raw
Responses Re: No promany key in parent table, how to use delete cascade?
List pgsql-sql
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



pgsql-sql by date:

Previous
From: "Zhidian Du"
Date:
Subject: Delete cascade for multi tables?
Next
From: Stephan Szabo
Date:
Subject: Re: No promany key in parent table, how to use delete cascade?