哦.
由于你只告诉我 userlv 的值域很小
没有告诉我 with_1,2,3的值域.现在假设
with_1,2,3的值这三个列的值域很大( 0 - n千)那么建议分别以 with_1, with_2, with_3 这三个字段创建三个索引然后select * from `log_manage` where userlv<=9 AND with_1=2
UNION
select * from `log_manage` where userlv<=9 AND with_2=2
UNION
select * from `log_manage` where userlv<=9 AND with_3=2
order by id DESC limit 10,10这样效率可能更高一些.