Hi
If i have two foreign keys in a table which make up my primary key, do i actually write in the SQL that they are the primary keys?
I know you can't declare more than one primary key in a table, eg
CREATE TABLE FACILITIES(
venue_id INTEGER PRIMARY KEY REFERENCES VENUE NOT NULL,
facility_id INTEGER PRIMARY KEY REFERENCES FACILITY_TYPE NOT NULL
)
....so do i just reference them as foreign keys?
eg
CREATE TABLE FACILITIES(
venue_id INTEGER REFERENCES VENUE NOT NULL,
facility_id INTEGER REFERENCES FACILITY_TYPE NOT NULL
)
thanks in advance!