【MapSheep】
[好记性不如烂笔头]
1 2 3 4 5 ··· 23 下一页
摘要: 服务器地址监听服务器地址: http://jrebel.cicoding.cn GUID生成器: http://jrebel.cicoding.cn/guid 生成的格式: http://jrebel.cicoding.cn/43B6551C-9785-CEA6-05DF-10AC0AF49AA7 阅读全文
posted @ 2020-08-04 10:05 (Play) 阅读(12807) 评论(4) 推荐(8) 编辑
摘要: SELECT * FROM your_table WHERE LENGTH(your_column) = length; 阅读全文
posted @ 2024-07-26 15:46 (Play) 阅读(2) 评论(0) 推荐(0) 编辑
摘要: UPDATE contacts SET phone_numbers = REPLACE(phone_numbers, '、', ''); 阅读全文
posted @ 2024-07-16 16:52 (Play) 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.在需要给该字段赋值为null的上面加一行注解 @TableField(strategy = FieldStrategy.IGNORED) 阅读全文
posted @ 2024-07-15 14:41 (Play) 阅读(2) 评论(0) 推荐(0) 编辑
摘要: MySQL dual(自带表) select '张三' as '变量1', (select s_name from Student where s_sex = '男' LIMIT 1) as '变量2', 2 as '变量3', null from dual; 阅读全文
posted @ 2024-03-14 11:55 (Play) 阅读(22) 评论(0) 推荐(0) 编辑
摘要: import java.sql.*; public class CheckTableExistence { public static void main(String[] args) throws SQLException { String url = "jdbc:mysql://localhos 阅读全文
posted @ 2024-01-23 16:18 (Play) 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 其中,column_name为要分割的列名,table_name为表名。这条查询将会返回每个记录中最后一个'/'之前的部分作为结果。 -1 取 ‘/’ 之后 0 取 '/' 之前 SELECT SUBSTRING_INDEX(column_name, '/', -1) AS result FROM 阅读全文
posted @ 2024-01-18 10:17 (Play) 阅读(7) 评论(0) 推荐(0) 编辑
摘要: IdType.AUTO 主键自增,系统分配,不需要手动输入,但需要设置 mysql auto_increment IdType.NONE 未设置主键 IdType.INPUT 需要自己输入 主键值**(配合MySQL int类型自增,亲测可用)** IdType.ASSIGN_ID 系统分配 ID, 阅读全文
posted @ 2024-01-12 17:23 (Play) 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1、count0函数 里面的参数是列名的的时候,会计算有值项的次数sum(函数 里面的参数是列名的时候,会计算 列名的值的和。2、两个函数在 记录的列名的值为空或者是null时,都不会去统计即count(列名)和sum(列名) 都不计入这条记录 3、count()可以计算出行数,count (1)也 阅读全文
posted @ 2023-11-23 16:35 (Play) 阅读(79) 评论(0) 推荐(0) 编辑
摘要: Map<String, String> resultMap = map.entrySet().stream().collect(Collectors.toMap(entry -> entry.getKey(), entry -> Optional.ofNullable(entry.getValue( 阅读全文
posted @ 2023-11-07 10:28 (Play) 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 参考网址 点击跳转 示例 如图 阅读全文
posted @ 2023-11-01 17:24 (Play) 阅读(8) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 23 下一页