T-SQL:DROP表级联约束等效吗? [英] T-SQL: DROP Table cascade constraints equivalent?

查看:56
本文介绍了T-SQL:DROP表级联约束等效吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在oracle中,我可以发出DROP TABLE ...级联约束,它不会抱怨FK等。

In oracle, I can issue a DROP TABLE ... cascade constraints and it won't complain about FKs, etc.

T-中是否有等效项? SQL?

Is there an equivalent in T-SQL?

推荐答案

否,在SSMS中,右键单击表格,然后选择脚本表格为,然后选择拖放至,然后是新窗口,文件...或剪贴板,它将产生一个脚本,其中包括所有必要的FK等等。

NO, IN SSMS right click on the table, and select "script table as" then "drop to", then "new window", "file..." or "clipboard" and it will produce a script that will include all the necessary drops of FKs etc.

这篇关于T-SQL:DROP表级联约束等效吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆