oracle
真实的存在生活中
这个作者很懒,什么都没留下…
展开
-
oracle知识点
1、null 问题: 不能比较 is null is not null not is null select ename,sal,comm from emp where comm is null; comm is not null; not (comm is null);2、dist原创 2014-04-01 21:21:00 · 364 阅读 · 0 评论 -
oracle--2
1、日期函数: 日期 数据库所在服务器的日期 1)、当前日期: sysdate == current_date select sysdate from dual; select current_date from dual; 2)、加入天数 + - select sysdate+10 from dual; select ename原创 2014-04-01 21:22:52 · 767 阅读 · 0 评论 -
oracle--3
/**表连接:数据来自于多张表 -->92语法1、笛卡尔积 :对乘select 字段列表 from 表1,表2....2、等值连接: 在笛卡尔积的基础上 取 有关系的列 值相等的记录select 字段列表 from 表1,表2 where 表1.字段 =表2.字段3、非等值连接:在笛卡尔积的基础上 取 有关系的列 值不等的记录 != > = 4、自连接:自己与自己转载 2014-04-01 21:23:30 · 468 阅读 · 0 评论 -
oracle--4
1、自连接:列出所有雇员的姓名及其上级的姓名。select e.ename, m.ename mname from emp e ,emp m where e.mgr =m.empno(+);列出入职日期早于其直接上级的所有雇员。select e.ename, m.ename mname, e.hiredate eh, m.hiredate mh from emp e转载 2014-04-01 21:24:06 · 574 阅读 · 0 评论 -
JDBC--结果集的元信息;commit
1、结果集的元信息2、commit原创 2014-04-08 11:32:32 · 419 阅读 · 0 评论 -
JDBC--行转列
原创 2014-04-08 11:21:44 · 549 阅读 · 0 评论