17,090
社区成员
发帖
与我相关
我的任务
分享
select id, title, create_on, has_pic
from tbl_info_article
where is_recommend = 0
and category_id between 5001 and 5008
and has_check = 0
or is_recommend = 0
and category_id between 5001 and 5008
and has_check = 1
and can_pass = 1
order by is_recommend, category_id, has_check, id desc; --使用和索引一样的排序,是吗?