摘要: --环比去年 and substr(last_sum.dbilldate,1,4) = to_char(add_months(to_date(substr(tmp.dbilldate,1,7),'yyyy-mm'),-12),'yyyy') row_number() over()取最新版本 sele 阅读全文
posted @ 2021-02-21 10:15 少昊 阅读(77) 评论(0) 推荐(0)
摘要: ora-ooo54 资源正忙 但指定以 NOWAIT 方式获取资源, 或者超时失效 查看数据库内产生了哪些锁 select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t 阅读全文
posted @ 2021-02-01 11:52 少昊 阅读(108) 评论(6) 推荐(0)
摘要: oracle取去年 to_char(add_months(to_date(po.dbilldate,'yyyy-mm'),-12),'yyyy') 阅读全文
posted @ 2021-01-26 14:38 少昊 阅读(422) 评论(0) 推荐(0)
摘要: 左关联后出现多一个空行, 多出行数:查看on关联字段和and条件,检查关联字段可能有重复值 也可以在where后加条件限制解决 is not null 仅限空行 阅读全文
posted @ 2021-01-22 10:52 少昊 阅读(380) 评论(0) 推荐(0)
摘要: 多行合并一行 listagg(字段, '分隔符') within group(order by 字段) listagg(chour, ',') within group(order by chour) wmsys.wm_concat实现同样效果,默认逗号 select nation,wmsys.wm 阅读全文
posted @ 2021-01-22 10:45 少昊 阅读(90) 评论(1) 推荐(0)
摘要: 强转字符串出错时试试用StringValueOf(字段).toString() sql.setLength(0);//清空字符串 StringBuilder sql = new StringBuilder(); setLength(0)效率较高 StringBuffer是线程安全的,而StringB 阅读全文
posted @ 2021-01-22 10:32 少昊 阅读(163) 评论(0) 推荐(0)
摘要: ps aux 是用BSD的格式来显示 java这个进程 显示的项目有:USER , PID , %CPU , %MEM , VSZ , RSS , TTY , STAT , START , TIME , COMMAND ps -ef 是用标准的格式显示java这个进程 显示的项目有:UID , PI 阅读全文
posted @ 2021-01-22 10:20 少昊 阅读(2656) 评论(0) 推荐(0)
摘要: sql分组排序函数 row_number() over(partition by 分组列 order by 排序列 desc) select tmp.pk_order from(select pk_order, row_number() over(partition by vbillcode ord 阅读全文
posted @ 2021-01-22 10:14 少昊 阅读(524) 评论(0) 推荐(0)
摘要: game W S A D移动,p暂停 score:0 var c=document.getElementById("myCanvas"); c.width="600";//注意:没有单位 c.height="400";//注意:没有单位 var ctx=c.getContext("2d"); var 阅读全文
posted @ 2020-10-29 13:51 少昊 阅读(441) 评论(0) 推荐(0)
摘要: /这里为了方便用了通配符,实际项目中要有一个reset.css文件*/{ margin:0; padding:0; font-size:12px; } body{ background-color:#F5F5F5; } / top-css / .top{ width:100%; height:27p 阅读全文
posted @ 2020-10-28 16:51 少昊 阅读(53) 评论(0) 推荐(0)