开发者社区 问答 正文

MySQL InnoDB表创建联合唯一索引出错?

MySQL InnoDB表创建联合唯一索引出错?

[SQL] alter table parcel add nuique index(parcel_parcelNum,parcel_status);
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your

展开
收起
小旋风柴进 2016-03-11 14:10:48 3149 分享 版权
1 条回答
写回答
取消 提交回答
  • ALTER TABLE table ADD UNIQUE INDEX uniq_name (name1, name2) USING BTREE ;

    2019-07-17 18:59:11
    赞同 展开评论