如何使用Sql脚本重命名外键. [英] How to rename Foreign Key Using Sql Script.
本文介绍了如何使用Sql脚本重命名外键.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用Sql脚本重命名外键.
我现有的外键名称是 FK_POrd_GMPartyBank
我想将其重命名为 FK_POrd_AMBank
请帮助我.....
How to rename Foreign Key Using Sql Script.
My Existing Foreign Key Name is FK_POrd_GMPartyBank
and I want to rename it to FK_POrd_AMBank
Please Help Me.....
推荐答案
要么和DominicZA一起去
其他外观此处 [
Either go with DominicZA
else have a look Here[^]
在脚本中放下密钥,然后使用新名称重新创建.据我所知,没有其他方法.
In your script drop the the key, then recreate it with the new name. As far as I know there is no other way.
这篇关于如何使用Sql脚本重命名外键.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文