摘要: 行转列--经典面试题一create table test(id number(10) primary key,type number(10) ,t_id number(10),value varchar2(6)); insert into test values(100,1,1,'张三');inse 阅读全文
posted @ 2019-04-18 20:49 被偷走的光 阅读(164) 评论(0) 推荐(0) 编辑
摘要: --1、使用基本查询语句.--(1)查询DEPT表显示所有部门select dname from dept;--(2)查询EMP表显示所有雇员名及其全年收入(月收入=工资+补助),处理NULL行,并指定列别名为"年收入"(NVL(comm,0) comm取空值时用0替代)select ename,( 阅读全文
posted @ 2019-04-17 12:07 被偷走的光 阅读(140) 评论(0) 推荐(0) 编辑