摘要:
解决方式一: mysql -A不预读数据库信息(use dbname 更快)―Reading table information for completion of table and column names You can turn off this feature to get a quick 阅读全文
摘要:
如何从表里随机的取三个值? 1、selelct word from words order by rand() limit 3 但是 使用explain命令看执行情况会发现有using temporary using filesort 说明使用了临时表和排序 之前了解到排序mysql的内部算法分全字 阅读全文
摘要:
查询语句:select city,name,age from table where city='杭州' order by name limit 1000; 上面这条sql语句的执行流程,怎么执行,以及什么参数会影响执行的行为 首先给city字段加索引之后,使用explain命令查看语句执行情况,会 阅读全文