摘要:
用于多条select语句合并结果 union 并集 去重 union all 并集 不去重 intersect 交集 minus 差集 union A集合和B集合的合并,但去掉两集合重复的部分,会排序 select deptno,ename from emp where deptno in (20, 阅读全文
摘要:
decode SQL> select ename,deptno, decode(deptno, 10,'AAAA', 20,'BBBB', 'CCCC') from emp order by 2; ENAME DEPTNO DECO CLARK 10 AAAA KING 10 AAAA MILLER 阅读全文
摘要:
Null是一个很特别的值,既不是0也不是空格.它的值是没有定义,不确定的未知值。 Null值的运算 AND运算表 True and NULL is NULL False and NULL = False NULL and NULL is NULL OR运算表 True or NULL = True 阅读全文