Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (24 sloc) 676 Bytes
ALTER TABLE PART
ADD CONSTRAINT part_kpey
PRIMARY KEY (P_PARTKEY);
ALTER TABLE SUPPLIER
ADD CONSTRAINT supplier_pkey
PRIMARY KEY (S_SUPPKEY);
ALTER TABLE PARTSUPP
ADD CONSTRAINT partsupp_pkey
PRIMARY KEY (PS_PARTKEY, PS_SUPPKEY);
ALTER TABLE CUSTOMER
ADD CONSTRAINT customer_pkey
PRIMARY KEY (C_CUSTKEY);
ALTER TABLE ORDERS
ADD CONSTRAINT orders_pkey
PRIMARY KEY (O_ORDERKEY);
ALTER TABLE LINEITEM
ADD CONSTRAINT lineitem_pkey
PRIMARY KEY (L_ORDERKEY, L_LINENUMBER);
ALTER TABLE NATION
ADD CONSTRAINT nation_pkey
PRIMARY KEY (N_NATIONKEY);
ALTER TABLE REGION
ADD CONSTRAINT region_pkey
PRIMARY KEY (R_REGIONKEY);