上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 1.rd /? 命令帮助 删除文件夹(空) rd /S 文件夹路径 2.rmdir /Q /S 目录 删除文件夹(非空) /S 除目录本身外,还将删除指定目录下的所有子目录 /Q 安静模式,带 /S 删除目录树时不要求确认 3.删除文件 del 文件名.后缀 阅读全文
posted @ 2022-07-22 14:45 唏嘘- 阅读(1387) 评论(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 唏嘘- 阅读(1049) 评论(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 唏嘘- 阅读(26) 评论(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 唏嘘- 阅读(477) 评论(0) 推荐(0) 编辑
摘要: MySQL中char_length(str),length(str)都属于判断长度的内置函数,根据其得到字符串的长度; char_length(str) 计算单位:字符 不管汉字还是数字或者是字母都算是一个字符 length(str) 计算单位:字节 utf8编码:一个汉字三个字节,一个数字或字母一 阅读全文
posted @ 2022-06-20 10:56 唏嘘- 阅读(11288) 评论(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 唏嘘- 阅读(268) 评论(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 唏嘘- 阅读(310) 评论(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 唏嘘- 阅读(619) 评论(0) 推荐(0) 编辑
摘要: post请求接口: 由提示信息可知:与SSL签名证书有关 解决方案: 在Postman > setting > SSL开关关闭即可。 阅读全文
posted @ 2022-02-16 14:52 唏嘘- 阅读(6380) 评论(0) 推荐(0) 编辑
摘要: 正确写法: <if test="userCode != null and userCode !='' and userCode !='admin'.toString()"> 或者 <if test='userCode != null and userCode !="" and userCode != 阅读全文
posted @ 2022-02-14 11:19 唏嘘- 阅读(254) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页