摘要: nvm是什么 nvm全英文也叫node.js version management,是一个nodejs的版本管理工具。nvm和n都是node.js版本管理工具,为了解决node.js各种版本存在不兼容现象可以通过它可以安装和切换不同版本的node.js。 下载地址:https://github.co 阅读全文
posted @ 2024-10-18 20:37 林汉州win 阅读(8) 评论(0) 推荐(0) 编辑
摘要: -- 7788 SCOTT ANALYST 7566 1987-04-19 3000.00 20 select * from emp as of timestamp sysdate-1*30/24/60--to_timestamp('2022-04-08 10:30:56','yyyy-mm-dd 阅读全文
posted @ 2022-04-08 10:44 林汉州win 阅读(21) 评论(0) 推荐(0) 编辑
摘要: begin merge into emp_test a using emp b on (a.empno=b.empno) when matched then update set a.comm=b.comm when not matched then insert values(b.empno,b. 阅读全文
posted @ 2022-04-07 10:43 林汉州win 阅读(81) 评论(0) 推荐(0) 编辑
摘要: /日期******/ select trunc(sysdate) from dual --2013-01-06 今天的日期为2013-01-06 select trunc(sysdate, 'mm') from dual --2013-01-01 返回当月第一天. select trunc(sysd 阅读全文
posted @ 2022-04-06 15:34 林汉州win 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 间隔时间: (1).每分钟执行 Interval ⇒ TRUNC(sysdate,'mi') + 1/ (24*60) 每小时执行 Interval ⇒ TRUNC(sysdate,'hh') + 1/ (24) (2).每天定时执行 例如:每天的凌晨1点执行 Interval ⇒ TRUNC(sy 阅读全文
posted @ 2022-04-06 15:02 林汉州win 阅读(70) 评论(0) 推荐(0) 编辑
摘要: select * from user_jobs ; SELECT * FROM EMP_MIDDLE; SELECT * FROM ETL_PROCLOG; SELECT * FROM EMP; select job, next_date, next_sec, failures, broken fr 阅读全文
posted @ 2022-04-02 17:51 林汉州win 阅读(109) 评论(0) 推荐(0) 编辑
摘要: create or replace procedure proc_batch_t IS --V_LOG ETL_PROCLOG%ROWTYPE; P_I_DATE varchar2(8); procname varchar2(100); v_sqlcount number(9); step_num 阅读全文
posted @ 2022-04-02 17:41 林汉州win 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 行转列 先构造列在去重 decode case when 然后group by 去重 列转行. 目的 是多余的行 用union 或者union all 去重. 阅读全文
posted @ 2022-03-21 16:27 林汉州win 阅读(28) 评论(0) 推荐(0) 编辑
摘要: where和having的区别 where> group by >having where子句在聚合前先筛选记录,也就是说作用在group by 子句和having子句前,而 having子句在聚合后对组记录进行筛选 where: where是一个约束声明; where是在结果返回之前起作用的; w 阅读全文
posted @ 2022-03-21 16:25 林汉州win 阅读(65) 评论(0) 推荐(0) 编辑
摘要: group by 和聚合函数使用:每组返回一个统计值 partition by 和聚合函数使用:每组每行返回一个统计值,通常配合row_number排序函数使用 一、在group by后的结果集上使用聚合函数,会作用在分组下的所有记录上。 group by 还有一个隐藏的功能:去重(求和时需要特别注 阅读全文
posted @ 2022-03-21 16:23 林汉州win 阅读(978) 评论(0) 推荐(0) 编辑