table protein does not have an attribute oid? why? - Mailing list pgsql-sql

From Zhidian Du
Subject table protein does not have an attribute oid? why?
Date
Msg-id F140GdMNFmWAFsTmICl00000575@hotmail.com
Whole thread Raw
List pgsql-sql


Dear All:



I want to create a delete cascade in children tables.  The primary key of 
parent table is oid.




CREATE TABLE Link (   Protein_ID oid,   Link varchar(128)   CONSTRAINT one   REFERENCES Protein (oid)   ON DELETE
CASCADE
);

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



pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Time difference without intervals
Next
From: "Zhidian Du"
Date:
Subject: Parent table has not oid?