如何创建外键
来自表tGeoAnswers列'locationId'
表tLocations列'id'?
ALTER TABLE
tGeoAnswers
ADD
FK_Answer_Location
FOREIGN KEY
(locationId)
REFERENCES
tLocations(id)
Run Code Online (Sandbox Code Playgroud)
我正在尝试这个我找到的代码,但是我收到以下错误:
列'FK_Answer_Location'的定义必须包含数据类型