摘要:
explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。使用方法,在select语句前加上explain就可以了:如:explainselectsurname,first_nameforma,bwherea.id=b.idEXPLAI... 阅读全文
摘要:
#! /bin/bashtime=`date '+%Y-%m-%d %H:%M:%S'`# echo $timesql='SELECT `username`, `password` FROM `user` WHERE `expire_date` 0;'echo $sql 阅读全文