上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 1、局部处理 (1)在相应字段上加@JsonFormat @JsonFormat(shape = JsonFormat.Shape.STRING)(2)在相应字段上加@JsonSerialize@JsonSerialize(using= ToStringSerializer.class) 2、全局处 阅读全文
posted @ 2022-09-07 16:24 唏嘘- 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: 1、根据id值 从小到大排序 //模拟数据 var list = [{"id" : 5, "name": "小明", "age" : 5}, {"id" : 2, "name": "小红", "age" : 12}, {"id" : 3, "name": "小花", "age" : 8}, {"id 阅读全文
posted @ 2022-08-25 10:37 唏嘘- 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: 1.rd /? 命令帮助 删除文件夹(空) rd /S 文件夹路径 2.rmdir /Q /S 目录 删除文件夹(非空) /S 除目录本身外,还将删除指定目录下的所有子目录 /Q 安静模式,带 /S 删除目录树时不要求确认 3.删除文件 del 文件名.后缀 阅读全文
posted @ 2022-07-22 14:45 唏嘘- 阅读(1411) 评论(0) 推荐(0) 编辑
摘要: 1、如果只有一个字段数据重复 自关联,保留id最小的那一条,其它的都删除 DELETE t1 FROM user t1, user t2 WHERE t1.user_code = t2.user_code AND t1.id > t2.id; 2、如果是全部字段都相同 delete from use 阅读全文
posted @ 2022-07-01 09:51 唏嘘- 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: 1093 - You can't specify target table 'table_name' for update in FROM clause;不能先select出同一表中的某些值,再update这个表(在同一语句中) 原语句: delete from i_user where b_cod 阅读全文
posted @ 2022-07-01 09:34 唏嘘- 阅读(27) 评论(0) 推荐(0) 编辑
摘要: select DISTINCT(left(created_on, 10)) createDate from record where plan_id = '123456789' order by created_on desc; 报错信息: Expression #1 of ORDER BY cla 阅读全文
posted @ 2022-06-23 15:27 唏嘘- 阅读(486) 评论(0) 推荐(0) 编辑
摘要: MySQL中char_length(str),length(str)都属于判断长度的内置函数,根据其得到字符串的长度; char_length(str) 计算单位:字符 不管汉字还是数字或者是字母都算是一个字符 length(str) 计算单位:字节 utf8编码:一个汉字三个字节,一个数字或字母一 阅读全文
posted @ 2022-06-20 10:56 唏嘘- 阅读(11313) 评论(0) 推荐(0) 编辑
摘要: 1. not in的结果集中出现null则查询结果为null; select * from device where code not in ('A', 'B', null); 上面查询结果为 null,查不出想要的结果 2、in的结果集中出现null不影响; select * from devic 阅读全文
posted @ 2022-06-13 17:03 唏嘘- 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1、将数组转换成集合 String [] arr = new String[]{"1", "2", "3"}; List<String> list = Arrays.asList(arr); list.remove("1"); 控制台报错: Exception in thread "main" ja 阅读全文
posted @ 2022-06-01 13:29 唏嘘- 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 问题描述:当传入的 status值为0 时,不进入 if 判断 <select id="selectAll" parameterType="com.imes.domain.entities.User" resultMap="BaseResultMap"> select * from user <wh 阅读全文
posted @ 2022-02-16 15:08 唏嘘- 阅读(647) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页