Administrator 发表于 2011-3-7 17:50:54

WAKAKA 发表于 2011-3-7 19:18:50

求程序 yc006t

狒狒 发表于 2011-3-7 19:24:08

xspoco 发表于 2011-3-7 20:28:09

好强大...求地址 围观

Kokgog 发表于 2011-3-8 08:40:42

原帖由 狒狒 于 2011-3-7 19:24 发表 http://www.hostloc.com/images/common/back.gif
$from = intval($_GET['id']?:rand(1,7900000));
$d = $jsql->query("select id,title from $tbwhere id > $from limit 10");
        while($r = $d->fetch()){
                $title_tmp = $r->title;
                $id = $r->id;
                $left .= ' ...
这个还是依赖的主键,不太会产生效率问题的,会产生效率问题的大多是

select *fields from table where user_id=123 and is_active=1 order by updated_at desc limit 1000,20

这种

狒狒 发表于 2011-3-8 09:06:19

losttime 发表于 2011-3-8 09:31:53

都是强人,我只能拜膜了!!!

大飞机 发表于 2011-3-8 10:25:31

,,,,@

Kokgog 发表于 2011-3-8 10:43:08

回复 16# 的帖子

:L 以后就别给演示了,太危险了。。。

wzwen 发表于 2011-3-8 10:48:53

原帖由 狒狒 于 2011-3-8 09:06 发表 http://www.hostloc.com/images/common/back.gif
没错,这种 limit 1000,20 最致命了,不知道谁这么蛋疼把我VPS给C关了,日,这是我放广告代码的VPSyc009t
这家vps贵呀,居然拿来只放广告。。。
yc009t
页: 1 [2]
查看完整版本: 做垃圾站的同学