上一页 1 2 3 4 5 6 ··· 17 下一页
摘要: select * from act_ru_task t where sysdate - to_date(to_char(t.create_time_,'yyyy-mm-dd'),'yyyy-mm-dd')>14 其中t.create_time_字段格式:timestamp(6) 阅读全文
posted @ 2024-02-02 17:57 花田007 阅读(33) 评论(0) 推荐(0)
摘要: StringUtils.equalsAny是一个Apache Commons Lang库中的方法,用于比较一个字符串是否与给定的一组字符串中的任何一个相等。它返回一个布尔值,如果相等则为true,否则为false。 阅读全文
posted @ 2023-11-16 13:50 花田007 阅读(999) 评论(0) 推荐(0)
摘要: instr函数返回string2在string1中出现的位置 查询地址中不包括“山东”的数据 select * from sys_address t where instr(t.address,'山东')=0; 查询地址中包括“山东”的数据 select * from sys_address t w 阅读全文
posted @ 2023-11-01 16:08 花田007 阅读(44) 评论(0) 推荐(0)
摘要: public static String ImageToBase64(String imgPath) { InputStream in = null; byte[] data = null; // 读取图片字节数组 try { in = new FileInputStream(imgPath); d 阅读全文
posted @ 2023-10-18 10:12 花田007 阅读(250) 评论(0) 推荐(0)
摘要: 判断是否开启 show global variables like 'log_bin'; 判断开启的binlog_format模式是哪种 show variables like "%binlog_format%"; Statement(Statement-Based Replication,SBR) 阅读全文
posted @ 2023-09-25 23:15 花田007 阅读(20) 评论(0) 推荐(0)
摘要: 格式化代码Ctrl+Alt+L删除无用的包Ctrl + Alt + O快速生成方法注解/** + 回车 阅读全文
posted @ 2023-09-13 15:50 花田007 阅读(26) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_36733838/article/details/124963141 阅读全文
posted @ 2023-08-30 09:44 花田007 阅读(14) 评论(0) 推荐(0)
摘要: 问题分析 由于 MySQL 的 InnoDB 引擎表索引字段长度的限制为 767 字节,因此对于多字节字符集的大字段或者多字段组合,创建索引时会出现该问题。 说明 注:以 utf8mb4 字符集字符串类型字段为例。utf8mb4 是 4 字节字符集,默认支持的索引字段最大长度是 191 字符(767 阅读全文
posted @ 2023-08-24 14:20 花田007 阅读(721) 评论(0) 推荐(0)
摘要: 首先说我们可能都会遇上这样的需求,进行try catch捕获到异常,然后将异常信息存储到到DB中,而jdk自带的e.printStackTrace(),是直接将异常信息进行输出,没法进行保存。 ExceptionUtils.getStackTrace(e) 源自: org.apache.common 阅读全文
posted @ 2023-08-08 16:12 花田007 阅读(43) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_52797170/article/details/125115139 阅读全文
posted @ 2023-08-02 17:26 花田007 阅读(13) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 17 下一页