我新的MySQL和我的工作在线服务器上(MySQL版本69年1月5日),我有如下表“KEY`idx_pid`(`person_id`),”是什么意思?
CREATE TABLE `person_info` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`person_id` int(11) NOT NULL,
`info_type_id` int(11) NOT NULL,
`info` text NOT NULL,
`note` text,
PRIMARY KEY (`id`),
KEY `idx_pid` (`person_id`),
KEY `person_info_info_type_id_exists` (`info_type_id`)
)
有人能向我解释什么是“KEY idx_pid
(person_id
)”呢?
所以,如果有多个表创建KEY'idx_pid'('person_id')这是否意味着idx_pid作为一种伪造密钥? – Irtza