摘要: 按某属性分组后,统计该数据中状态列,该状态列包含若干值,统计某一个或几个状态,其他状态业务为一个聚合状态,如空闲和占用(非空闲)状态。 -- 利用FIELD()自定义排序函数,不在列表中的值结果为0,可使用= >等条件判断,COUNT(expr)统计非整行数据时,忽略NULL值 SELECT COU 阅读全文
posted @ 2021-03-04 10:55 毁乐乖狂,自有诪张 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 日志清除脚本clear_log.sh Linux定时清理日志脚本(find ... exec rm -rf) #!/bin/bash # source /home/.bash_profile # 日志目录数组,根据需要增删 log_dirs=(/home/.../logdir1 /home/.../ 阅读全文
posted @ 2021-02-23 16:05 毁乐乖狂,自有诪张 阅读(681) 评论(0) 推荐(0) 编辑
摘要: source filename 与 sh filename 及./filename执行脚本的区别 1.当shell脚本具有可执行权限时,用sh filename与./filename执行脚本是没有区别得。./filename是因为当前目录没有在PATH中,所有”.”是用来表示当前目录的。 2.sh 阅读全文
posted @ 2021-02-06 16:06 毁乐乖狂,自有诪张 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 关联查询班级和班主任 association 或者学生 collection *:利用<include> property属性自动配置别名,映射结果由columnPrefix匹配。 也可手动全部写出[别名_字段]替换该标签中的内容, 和关联查询标签中的 columnPrefix="stu_" 属性, 阅读全文
posted @ 2021-02-03 17:47 毁乐乖狂,自有诪张 阅读(918) 评论(0) 推荐(0) 编辑
摘要: Oracle、SQL server数据库的分组排序函数rank()over()、row_number()over()、dense_rank()over() MySQL没有这三个函数。 sql执行顺序图 1.利用group_concat()函数内置的order by分组排序属性 group_conca 阅读全文
posted @ 2021-01-25 17:12 毁乐乖狂,自有诪张 阅读(3418) 评论(0) 推荐(0) 编辑
摘要: 浏览器控制台信息: has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the 阅读全文
posted @ 2020-11-20 16:40 毁乐乖狂,自有诪张 阅读(2078) 评论(1) 推荐(1) 编辑
摘要: 产业数据三级联动,直接通过sql查询 产业字典表xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dt 阅读全文
posted @ 2020-11-09 20:10 毁乐乖狂,自有诪张 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 报错日志: 2020-10-22 17:14:57,140 ERROR [com.asion.business.web.advice.ExceptionAdvice:37] - Error in execution; nested exception is io.lettuce.core.Redis 阅读全文
posted @ 2020-10-22 18:44 毁乐乖狂,自有诪张 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 效果图: 在线反编译网址:http://javare.cn/ jd-gui反编译报错// INTERNAL ERROR // jd-gui不好使,可使用Luyten反编译工具,下载地址: https://github.com/deathmarine/Luyten/releases 阅读全文
posted @ 2020-10-21 17:55 毁乐乖狂,自有诪张 阅读(666) 评论(0) 推荐(0) 编辑
摘要: solution: @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @RunWith(SpringRunner.class) 说明(转): 经查阅资料,得知SpringBootTest在启动的时候 阅读全文
posted @ 2020-10-21 17:51 毁乐乖狂,自有诪张 阅读(918) 评论(0) 推荐(0) 编辑