数据库使用中经常忘记的问题

来源:互联网 发布:施乐s1810网络设置 编辑:程序博客网 时间:2024/04/26 22:18

1、主函数

     A  所有包含于select列表中,而未包含于 主函数中的列 多必须要包含于 group by 字句中。

    B 不能在where自居中使用主函数

   C 可以在having字句中使用主函数

    D  例子:   select  department_id  ,AVG(salary)

                         from  employees

                      group by  department_id;

0 0