person表如上,
1.当运行语句 select email,COUNT(email) from person 时,所得结果为
各种摸索后得出结论,email为数据库默认第一行数据。右键菜单的排序不影响其结果。
2.当运行语句 select email,COUNT(email) from person GROUP BY email 时,所得结果为
可见,group by 的作用(一时没想好怎么描述,待完善)
person表如上,
1.当运行语句 select email,COUNT(email) from person 时,所得结果为
各种摸索后得出结论,email为数据库默认第一行数据。右键菜单的排序不影响其结果。
2.当运行语句 select email,COUNT(email) from person GROUP BY email 时,所得结果为
可见,group by 的作用(一时没想好怎么描述,待完善)