06 2022 档案

摘要: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 唏嘘- 阅读(568) 评论(0) 推荐(0) 编辑
摘要:MySQL中char_length(str),length(str)都属于判断长度的内置函数,根据其得到字符串的长度; char_length(str) 计算单位:字符 不管汉字还是数字或者是字母都算是一个字符 length(str) 计算单位:字节 utf8编码:一个汉字三个字节,一个数字或字母一 阅读全文
posted @ 2022-06-20 10:56 唏嘘- 阅读(11413) 评论(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 唏嘘- 阅读(295) 评论(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 唏嘘- 阅读(347) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示