echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » 浅谈MySql下的查询优化:一个查询优化的简单例子 仲子说

2008-05-08

浅谈MySql下的查询优化:一个查询优化的简单例子

Posted in PHP at 20:24 Author:仲远

标签:

PHP+Mysql???????????????????????????????????????Apache??????Perfect?????????PHP??Mysql????????PHP??????java???????????????????????????????????????????????Mysql????????????????????????mysql???????????????????????SQL????????????

????????test????????id???????????id???????????????????SQL???
SELECT *
FROM `test`
order by id asc
limit 208888,50
??SQL???????id??208888????????50???????30?????????????????????????????????????40?50??

???????SQL???????????????????SQL???
SELECT *
FROM `test`
WHERE id
BETWEEN 208838
AND 208888
?????????????????????????????0.06??

??????????id???????????????????????????????????????????MySql??????????????B+????????????????????????

?????????????SQL???????????????????????SQL????????????????????????????????????????????????

????????????????????????????
?????http://www.wangzhongyuan.com/archives/363.html 

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

1 Comment »

  1. 张鹏 said,

    2009年July27日 at 0:17

    哇!多谢师兄提醒哪!

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word