pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zhidian Du <duzhidian@hotmail.com>
To: sszabo@megazone23.bigpanda.com
Cc: pgsql-sql@postgresql.org
Subject: table protein does not have an attribute oid? why?
Date: Sat, 09 Nov 2002 23:01:41 -0700
Message-ID: <F140GdMNFmWAFsTmICl00000575@hotmail.com> (raw)




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




Message-ID: <F140GdMNFmWAFsTmICl00000575@hotmail.com>
Permalink:  ../F140GdMNFmWAFsTmICl00000575@hotmail.com/
Also on:    postgresql.org/message-id/F140GdMNFmWAFsTmICl00000575@hotmail.com

 · 

reply

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, sszabo@megazone23.bigpanda.com
  Subject: Re: table protein does not have an attribute oid? why?
  In-Reply-To: <F140GdMNFmWAFsTmICl00000575@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