Parent table has not oid?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]







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



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux