将主键列更改为其他列 [英] Change primary key column to other column

查看:79
本文介绍了将主键列更改为其他列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过查询将主键列更改为sql server 2000中表中的其他列???
请帮助我解决这个问题....

How can i change primary key column to other column in table in sql server 2000 through query???
Please help me this problem....

推荐答案

在这里,看看这些文章:
MSDN:创建和修改主键约束 [ ^ ]
MSDN:修改主键 [ SQL SERVER –如何删除主键约束 [ ^ ]
Here, have a look at these articlea:
MSDN: Creating and Modifying PRIMARY KEY Constraints[^]
MSDN: Modifying a Primary Key[^]
SQL SERVER – How to Drop Primary Key Contraint[^]


使用 ALTER TABLE [ ^ ]命令.


http: //social.msdn.microsoft.com/Forums/zh-CN/sqlsmoanddmo/thread/adc78696-9b31-4ffd-b881-5a2f87249cfd [

这篇关于将主键列更改为其他列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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