标签:flow index dem read enum 唯一性 system 存储 字段
show VARIABLES like ‘slow_query_log‘;
show VARIABLES like ‘log_output‘;
show VARIABLES like ‘slow_query_log_file‘;show VARIABLES like ‘slow_query_log‘;show VARIABLES like ‘log_output‘;show VARIABLES like ‘slow_query_log_file‘;全值匹配我最爱, 最左前缀要遵循
带头大哥不能死,中间兄弟不能断
索引列上少计算,范围之后全失效
like百分写最右,覆盖索引不写*
不等空值还有OR,索引影响要注意
varchar引号不能丢,SQL优化有诀窍全值匹配我最爱, 最左前缀要遵循带头大哥不能死,中间兄弟不能断索引列上少计算,范围之后全失效like百分写最右,覆盖索引不写*不等空值还有OR,索引影响要注意varchar引号不能丢,SQL优化有诀窍导出数据文件
select * from my_user into OUTFILE ‘E:\t.txt‘;
导入数据
LOAD DATA INFILE ‘E:\my_user.txt‘ INTO TABLE my_user1;x
导出数据文件select * from my_user into OUTFILE ‘E:\t.txt‘;导入数据LOAD DATA INFILE ‘E:\my_user.txt‘ INTO TABLE my_user1;标签:flow index dem read enum 唯一性 system 存储 字段
原文地址:https://www.cnblogs.com/zwln/p/13096825.html