How to constrain a column in my table so it can't have two or more similar values at a time and it isn't a primary key ?
我应该使用CHECK
或CONSTRAINT
还是...?实现这一目标的正确方法是什么?
注意:我正在使用 MySQL
最佳答案
关于mysql - 约束表字段 -> 不重复值,不是主键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8245993/