本文介绍了如何取消外键约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

谁能告诉我如何在sql中删除在列级别定义的外键约束(或者我们可以说没有名字).

代码示例:

Hi All,

Would anyone please tell me how to drop a foreign key constraint defined on column level in sql(or we can say having no name).

Code Example:

Create Table Employee
(
Employee_ID int Primary Key,
Job_ID int Foreign Key references JOB(Job_ID)
)


/*考虑到另一个名为"JOB"的表,该表的列为Job-ID */


/*consider there is another table Named "JOB" with column Job-ID*/

推荐答案




这篇关于如何取消外键约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 04:54
查看更多