where中为什么不能有聚合函数

sql语句的执行过程是:from-->where-->group by -->having --- >order by --> select;

聚合函数操作的对象是结果集,而结果集是在where筛选之后得出的

猜你喜欢

转载自www.cnblogs.com/bibiafa/p/9342639.html