what's the difference between WHERE and HAVING

前端 未结 5 918
孤街浪徒
孤街浪徒 2021-02-07 02:31

It looks like both WHERE and HAVING help filter rows. I wonder if, instead of having to HAVING, I can use WHERE ... AND.

5条回答
  •  自闭症患者
    2021-02-07 03:17

    You would use the Having statement with Group By, typically as a way to filter on an aggregate column.

    You can get more information here.

提交回复
热议问题