漂亮男人2017-05-24 11:35:09
创建唯一索引
单键索引:create unique index UNIQUE_PERSON_NICK_NAME_INDEX ON Person (NickName)
create unique index UNIQUE_PERSON_NICK_NAME_INDEX ON Person (NickName)
双键索引:create unique index UNIQUE_PERSON_FULL_NAME_INDEX ON Person (LastName, FirstName)
双键索引:
create unique index UNIQUE_PERSON_FULL_NAME_INDEX ON Person (LastName, FirstName)
MYSQL完整创建索引语法: