Parent table has not oid? - Mailing list pgsql-php

From Zhidian Du
Subject Parent table has not oid?
Date
Msg-id F61oWoCaNCnFjtCEhgv00004919@hotmail.com
Whole thread Raw
Responses Re: [SQL] Parent table has not oid?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-php



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


pgsql-php by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Transaction including two web page + timer
Next
From: Zavier Sheran
Date:
Subject: Backing up the database via browser