一,如果一个查询中使用了分组函数,任何不在分组函数中的列或表达式必须要在group by中,否则出错。
<IMG src="https://files.jb51.cc/file_images/article/201309/201309031538301.gif?201383153851">
<IMG src="https://files.jb51.cc/file_images/article/201309/201309031539312.gif?201383153944">
一,如果一个查询中使用了分组函数,任何不在分组函数中的列或表达式必须要在group by中,否则出错。
<IMG src="https://files.jb51.cc/file_images/article/201309/201309031538301.gif?201383153851">
<IMG src="https://files.jb51.cc/file_images/article/201309/201309031539312.gif?201383153944">