How to add foreign key in sql server [closed]

独自空忆成欢 提交于 2021-01-20 13:33:10

问题


I have Types column in my Help Table and I want to add foreign key to the Id column in my HelpType table but not really sure what I'm doing wrong so. If I can get any suggestion or help will be really appreciated.

ALTER TABLE Help
   ADD CONSTRAINT FK_Types FOREIGN KEY (Types)
      REFERENCES maxis_charts.HelpType (Id)
;

来源:https://stackoverflow.com/questions/65723540/how-to-add-foreign-key-in-sql-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!