ALTER TABLE `t_city_combo` ADD UNIQUE INDEX ` t_city_combo_index` (`combo_id`, `combo_name`, `city_id`) USING BTREE 

语法


  ALTER TABLE `表名英文` ADD UNIQUE INDEX ` 索引名英文` (`列1英文`, `列2英文`, `列3`) USING BTREE 

Navicat 创建索引,需要如下步骤

在表右键-->设计表-->索引-->依次如下配置
Mysql创建多列唯一索引Sql

参考

http://www.365mini.com/page/mysql-index-operation.htm

2015年9月22日11:38:06
@落雨

相关文章:

  • 2022-01-07
  • 2022-12-23
  • 2021-05-03
  • 2021-07-20
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2022-03-06
  • 2021-12-04
  • 2021-05-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案