
mysql
明媚呀
前端
展开
-
CentOS 7环境部署(3)——MySQL
在centos7.6(64位)中安装MySQL8.0.18原创 2020-02-22 13:15:23 · 193 阅读 · 0 评论 -
索引失效原因之——sql语句中的字段类型与数据表中的字段类型不符
一、背景 现有test_type表,表结构如下图所示,其中num字段的类型为varchar: 执行sql语句: select sum(money) from test_type where num = ‘1210’; 如下图所示:执行此sql语句花费1秒。 为了减少执行此sql语句花费时间,现为数据表中num字段建立索引: CREATE INDEX index_num ON test_typ...原创 2020-01-04 16:55:35 · 1467 阅读 · 0 评论