not sure i understand your question, but the above syntax is wrong
you can use whatever name you want for the foreign key, i.e. standstreatedID is perfectly okay when referencing standsID in standstreated
the syntax error is due to the missing parentheses
Code:
CREATE TABLE equipment_standstreated
(
equipmenttypeID INTEGER NOT NULL
standtreatedID INTEGER NOT NULL
, PRIMARY KEY (equipmenttypeID, standtreatedID)
, CONSTRAINT equipmenttypeID_fk
FOREIGN KEY ( equipmenttypeID )
REFERENCES equipmenttypes (equipmenttypeID)
, CONSTRAINT standstreatedID_fk
FOREIGN KEY ( standstreatedID )
REFERENCES standstreated (standsID)
);
