分配唯一约束 [英] Assigning Unique Constraint
本文介绍了分配唯一约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
Gud mng
我正在使用MySql5.1数据库.我的疑问是我可以为表中的特定列分配唯一约束吗?表已经有一个列作为主键了.等待答复.
谢谢.
Hi
Gud mng
I am using the MySql5.1 database.My doubt is can i assign unique constraint to the particular column in a table which is already having a column as primary key.Waiting for the reply.
Thank you.
推荐答案
是的,您应该能够-请参阅MySql ^ ]以获得整洁的小样本.
Yes you should be able to - see MySql documentation[^] for a neat little sample.
这篇关于分配唯一约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文