SQL only allow foreign keys where other column matches

后端 未结 0 1329
花落未央
花落未央 2021-01-01 07:21

I have two tables,

CREATE TABLE ActivityCodes (
    ActivityCodeID INT NOT NULL PRIMARY KEY,
    LocationID INT NOT NULL
);

and



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题