0
我在MySQL中,下表如何刪除mysql中的外鍵唯一鍵?
CREATE TABLE `account_info` ( `id` int(11) DEFAULT NULL, `accesstype` int(11) DEFAULT NULL, `username` varchar(32) CHARACTER SET latin1 DEFAULT NULL, `pass` varchar(32) CHARACTER SET latin1 DEFAULT NULL, UNIQUE KEY `id` (`id`), KEY `accesstype` (`accesstype`), CONSTRAINT `account_info_ibfk_1` FOREIGN KEY (`id`) REFERENCES `master_info` (`id`), CONSTRAINT `account_info_ibfk_2` FOREIGN KEY (`accesstype`) REFERENCES `access_type` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8
現在我需要刪除從ID唯一性(我只需要它是不爲空或只是一個索引)
我怎樣才能改變這種指數是這樣的KEY id
(id
)而不是UNIQUE KEY id
(id
) ??