$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
这种 都是强人,我只能拜膜了!!! ,,,,@
回复 16# 的帖子
:L 以后就别给演示了,太危险了。。。 原帖由 狒狒 于 2011-3-8 09:06 发表 http://www.hostloc.com/images/common/back.gif没错,这种 limit 1000,20 最致命了,不知道谁这么蛋疼把我VPS给C关了,日,这是我放广告代码的VPSyc009t
这家vps贵呀,居然拿来只放广告。。。
yc009t
页:
1
[2]
