pg_dumap not include foreign key...

From: "xyzii" <xyzii(at)kimo(dot)com(dot)tw>
To: pgsql-admin(at)postgresql(dot)org
Subject: pg_dumap not include foreign key...
Date: 2000-12-24 16:57:26
Message-ID: 9259tr$11ig$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

me datastru ,try pg_dumpall > aa.out what not include foreign key......

CREATE TABLE "purcsub" (
"trn_no" char(14) NOT NULL,
"seq" int4 DEFAULT nextval('seq'::text),
"pmrc_no" varchar(14),
"item_no" char(20) NOT NULL,
"item_na1" varchar(120),
"color_na" varchar(20),
"ware_no" char(4),
"unit" varchar(4),
"trn_qty" int2,
"qty" float8 default 0,
"sqty" float8 default 0,
"price" float8 default 0,
"sprice" float8 default 0,
"discount" float8 default 0,
"amount" float8 default 0,
"memo" varchar(20),
"trn_type" varchar(2),
"trn_date" date,
"fact_no" char(20),
"giveaway" varchar(1),
foreign key (trn_no) references purc (trn_no)
ON DELETE CASCADE ON UPDATE CASCADE

);

RW^ O H ~DG tAMuG0932-535772
mailto:msee(at)kimo(dot)com(dot)tw

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Brett W. McCoy 2000-12-24 17:24:21 Re: [SQL] Running a file
Previous Message Raju Mathur 2000-12-24 14:24:06 Running a file