流动的sql首先通过reg_time执行命令然后执行limit但我想先执行限制,然后按顺序执行.ho可以告诉我该怎么做。
select * from user where province = 'hai' order by reg_time limit 0,20;
答案 0 :(得分:1)
奇怪的要求,如果你真的想要,你可以尝试子查询:
select *
from (select * from user where province = 'hai' limit 0,20) t
order by reg_time