2017年3月2日

摘要: 不等值连接查询 员工工资级别 select e.empno,e.ename,e.sal,s.grade from emp e,salgrade s where e.sal between s.losal and s.hisal 外连接 外连接的意义:对于某些不成立的记录,仍然希望包含在最后的结果集中 阅读全文
posted @ 2017-03-02 16:45 unknow16 阅读(263) 评论(0) 推荐(0) 编辑
 
摘要: 函数 单行函数:一个输入一个输出 多行函数:多个输入一个输出 lower(a):a转小写 upper(a):a转大写 substr(a,b):在a中,取从b位开始到结尾的子串 initcap():首字母大写 length():字符长度 lengthb():字节长度 instr(a,b):在a中查找b 阅读全文
posted @ 2017-03-02 16:44 unknow16 阅读(133) 评论(0) 推荐(0) 编辑
 
摘要: null null为无效的,未指定的,未知的活不可预知的值 null不是空格或0 包含null 的数学表达式其结果都为空值 null 永远!= null 判断某个字段为null,用 ename is null 如果集合中有null,可以使用in, 不能使用not in However, Oracle 阅读全文
posted @ 2017-03-02 16:42 unknow16 阅读(171) 评论(0) 推荐(0) 编辑
 
摘要: 常用commond alter user scott account unlock; 解锁账号 alter user scott identified by new_pwd; 设置密码 lsnrctl status/start/stop:监听服务的状态,启动,停止命令 conn sys/passwo 阅读全文
posted @ 2017-03-02 16:40 unknow16 阅读(202) 评论(0) 推荐(0) 编辑