📜  如何在mysql代码示例中添加唯一键约束

📅  最后修改于: 2022-03-11 15:04:54.959000             🧑  作者: Mango

代码示例1
-- Add a Unique constraint and deifine the constraint name
ALTER TABLE TABLENAME
ADD    CONSTRAINT UQ_tblPerson_Email UNIQUE(COLUMN_NAME)