2011年6月13日

mysql的索引使用不当速度比没加索引还慢

摘要: mysql的索引使用不当速度比没加索引还慢,我们举个例子来解释一下。 下面是我们插入到这个tuangou表的数据: id web city type 1 拉手网 北京 餐饮美食 2 拉手网 上海 休闲娱乐 3 百分团 天津 餐饮美食 4 拉手网 深圳 网上购物 5 百分团 石家庄 优惠卷票 6 百分团 邯郸 美容保健..4999 百分团 重庆 旅游酒店5000 拉手网 西安 优惠卷票执行mysql语句:$sql = "select from tuangou where web='拉手网' and city='上海'";(1)如果没有加索引,执 阅读全文

posted @ 2011-06-13 09:34 yn2010 阅读(506) 评论(0) 推荐(0) 编辑

导航