Mysql 没有可用的\u键,但where子句中存在键
Explain语句:Mysql 没有可用的\u键,但where子句中存在键,mysql,explain,Mysql,Explain,Explain语句:Explain从words\u数据中选择id,其中pid=232632但没有可能的键,列中也没有列出键。解释我的测试环境中的产量: CREATE TABLE `words_data` ( `id` int(11) NOT NULL auto_increment, `words` varchar(50) default '', `pid` int(8) default '0', `baiyephp` int(11) default '0', PRIMARY
Explain从words\u数据中选择id,其中pid=232632代码>但没有可能的键,列中也没有列出键。解释我的测试环境中的产量:
CREATE TABLE `words_data` (
`id` int(11) NOT NULL auto_increment,
`words` varchar(50) default '',
`pid` int(8) default '0',
`baiyephp` int(11) default '0',
PRIMARY KEY (`id`),
KEY `baiyephp` (`baiyephp`),
KEY `words` (`words`),
KEY `pid` (`pid`),
KEY `pid_id` (`id`,`pid`)
) ENGINE=MyISAM AUTO_INCREMENT=1961736 DEFAULT CHARSET=utf8
这似乎表明pid=232632的表中没有数据是的,pid=232632的表中没有数据,但有些行的pid=260009,也没有可能的_键和无键。
Impossible WHERE noticed after reading const tables