摘要:
-- having前面必须有group byselect e.deptno ,sum(e.sal) as sum_sal ,min(e.sal) as min_sal ,max(e.sal) as max_sal ,avg(e.sal) as avg_sal ,count(e.ename) as c 阅读全文
摘要:
排序 order by 默认正序 asc 倒序 desc每个字段右上角 单击可以排序(正序倒序都可以) -- 按一个字段的排序 默认正序select * from emp e order by e.sal;-- 加上正序关键字也是可以的select * from emp e order by e.s 阅读全文
摘要:
-- 删除表drop table -- 建表create table -- 表注释comment on table ... is ...-- 字段注释comment on column ... is ... -- 查询select * from -- 增加insert into ... values 阅读全文