摘要: 命令都是在命令行窗口执行 创建用户 1)登陆管理员用户 sqlplus system/密码 sqlplus system/briup 注意不要以分号结尾 2)创建用户 create user 用户名 identified by 密码; create user jd2001_2005 identifi 阅读全文
posted @ 2020-09-06 17:12 jamers 阅读(119) 评论(0) 推荐(0) 编辑
摘要: where和having都是做条件筛选的 where执行的时间比having要早 where后面不能出现组函数 having后面可以出现组函数 where语句要跟在from后面 ,where 不能单独出现 having语句要紧跟group by后面,having不能单独出现 阅读全文
posted @ 2020-09-06 17:02 jamers 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 执行顺序: from where group by having select order by ******当having/select 中出现组函数,那么其他没有被组函数修饰的列就必须出现下group by后面。因为一旦有group by 关键字 则代表 后序执行的数据都是要分组的 若在havi 阅读全文
posted @ 2020-09-06 17:00 jamers 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 左外连接 左外连接 全连接1.左外连接:表1 left [outer] join 表1 on 条件 在等值连接的基础上会把表1中的其他内容也展示出来 而表2只会显示符合条件的内容 。 outer 可省(1)select emp.last_name,dept.namefrom s_emp emp,s_ 阅读全文
posted @ 2020-09-06 16:51 jamers 阅读(558) 评论(0) 推荐(0) 编辑