sql语句select group by order by where一般先后顺序
写的顺序:select ... from... where.... group by... having... order by...limit 执行顺序:from... where...group by... select....having... order by...limit
写的顺序:select ... from... where.... group by... having... order by...limit 执行顺序:from... where...group by... select....having... order by...limit