- 博客(4)
- 收藏
- 关注
原创 记录练习题——理论题
select ename, job, dname from emp cross join dept;语句属于(d)10、 [ 单选题 ]A、INSERT INTO…SELECT不能插入一条数B、INSERT INTO…SELECT不能使用DUAL这个表C、如果列是正确对应的,该语句正确执行D、以上均不正确...
2022-04-24 11:31:20
50
原创 记录更新数据用法
先查询:select * from emp e left join dept t on e.deptno=t.deptno) set sal =( select (case when e.job='MANAGER' and t.loc='DALLAS' then sal *1.15 when e.job='CLERK' and t.loc='NEW YORK' then sal*0.95 else sal end) t from...
2022-04-21 07:37:34
53
原创 记录行转列用法
select deptno, sum(decode(t, 1, sal)) sal1, sum(decode(t, 2, sal)) sal2, sum(decode(t, 3, sal)) sal3 from (select deptno, sal, row_number() over(partition by deptno order by sal desc) t ...
2022-04-21 07:34:06
40
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人