Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在word的第一部分创建mysql索引_Mysql - Fatal编程技术网

在word的第一部分创建mysql索引

在word的第一部分创建mysql索引,mysql,Mysql,我正在尝试在标题上添加索引: alter table title_google add index(title) 但我得到了以下错误: Specified key was too long; max key length is 1000 bytes 我将如何做以下事情: alter table title_google add index(title[:100]) 或者使此索引在列的第一部分起作用的等效方法?可能是您的解决方案: ALTER TABLE title_google ADD I

我正在尝试在
标题上添加索引

alter table title_google add index(title)
但我得到了以下错误:

Specified key was too long; max key length is 1000 bytes
我将如何做以下事情:

alter table title_google add index(title[:100])
或者使此索引在列的第一部分起作用的等效方法?

可能是您的解决方案:
ALTER TABLE title_google ADD INDEX(title(100))