SELECT高级操做

having 例4:统计1班的学生人数,列出班号和人数 select 1 班号,count() 人数 from stu where cno=1; 或者: select cno 班号,count() 人数 from stu group by cno having cno=1; having相对于where来讲会有些浪费资源 视图view 建立视图语法:create view vtb_name as
相关文章
相关标签/搜索