我在mysql中有下表
创建表`account_info`( `id` int(11) 默认为 NULL, `accesstype` int(11) 默认为空, `username` varchar(32) CHARACTER SET latin1 DEFAULT NULL, `pass` varchar(32) CHARACTER SET latin1 DEFAULT NULL, 唯一键`id`(`id`), KEY `accesstype` (`accesstype`), CONSTRAINT `account_info_ibfk_1` FOREIGN KEY (`id`) REFERENCES `master_info` (`id`), 约束 `account_info_ibfk_2` 外键 (`accesstype`) 参考 `access_type` (`id`) ) 引擎=InnoDB 默认字符集=utf8
现在我需要从 id 中删除唯一性(我只需要它不为 null 或只是一个索引)
我怎样才能将此索引更改为KEY id
(id
)而不是UNIQUE KEY id
(id
)?