上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: select * from pg_stat_activity where datname = 'datname' and waiting_reason = 'lock'; 根据查询结果中的pid值杀掉进程 select pg_terminate_backend(pid) 阅读全文
posted @ 2023-05-24 09:20 懂得归零 阅读(35) 评论(0) 推荐(0) 编辑
摘要: SELECT array_to_json(array_agg(row_to_json(sys_xzqh))) from sys_xzqh where xzqh like '%341126%' 阅读全文
posted @ 2023-02-10 09:15 懂得归零 阅读(151) 评论(0) 推荐(0) 编辑
摘要: import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.*;public class WeekdaysUtils { public static List<String> list = ne 阅读全文
posted @ 2023-02-01 16:28 懂得归零 阅读(95) 评论(0) 推荐(0) 编辑
摘要: List<Vo> list = dao.selectList();if(CollectionUtils.isNotEmpty(list)) { Optional<Vo> max = list.stream().filter(obj->ObjectUtils.isNotEmpty(obj) && Ob 阅读全文
posted @ 2023-01-29 14:38 懂得归零 阅读(889) 评论(0) 推荐(0) 编辑
摘要: -- sum() over(partition by ... order by ...)SELECT len/sum(len)over(partition by road_id) param from rs; -- min() over(partition by ... order by ...)S 阅读全文
posted @ 2022-12-19 10:25 懂得归零 阅读(649) 评论(0) 推荐(0) 编辑
摘要: SELECT len/sum(len)over(partition by road_id) param from road_jcpd_section 阅读全文
posted @ 2022-12-16 10:16 懂得归零 阅读(197) 评论(0) 推荐(0) 编辑
摘要: @Component@EnableScheduling // 1.开启定时任务@EnableAsync // 2.开启多线程public class MultithreadScheduleTask { @Async @Scheduled(fixedRate= 3000) //3秒执行一次 publi 阅读全文
posted @ 2022-12-14 13:41 懂得归零 阅读(286) 评论(0) 推荐(0) 编辑
摘要: SELECT rl.road_code,string_agg(distinct rs.tech_level_label, ',') from road_lst rlleft join road_section rs on rl.id = rs.road_idwhere rs.tech_level_l 阅读全文
posted @ 2022-12-13 14:03 懂得归零 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1、创建物化视图 CREATE MATERIALIZED VIEW "view_xxx“ as select * from 表 2、刷新物化视图 refresh materialized view view_xxx; 3、删除物化视图 drop materialized view view_xxx; 阅读全文
posted @ 2022-12-13 13:32 懂得归零 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 在Terminal终端中输入 git config user.name git config --global user.name "xl" 阅读全文
posted @ 2022-12-13 10:59 懂得归零 阅读(774) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页