上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 函数介绍: 截取的函数: substr(?,?); substr(?,?,?); 获取目标字符出现的位置: instr(? , ? , ? ); instr( ? , ? , ? , ? ) 例: 字符串 "AAA-BBB" 截取"AAA" "BBB" select substr('AAA-BBB' 阅读全文
posted @ 2021-11-22 17:59 lemmon_water 阅读(919) 评论(0) 推荐(1)
摘要: regexp_replace(t.name, '[\\(|(].+[\\)|)]', '') 阅读全文
posted @ 2021-11-22 17:20 lemmon_water 阅读(31) 评论(0) 推荐(0)
摘要: file.substring(file.indexOf("/") + 1, file.lastIndexOf(";")); 阅读全文
posted @ 2021-11-19 10:34 lemmon_water 阅读(189) 评论(0) 推荐(0)
摘要: 1、将逗号分隔的字符串转换为List String str = "a,b,c"; List<String> result = Arrays.asList(str.split(",")); 2、将List转换为逗号分隔的字符串 (1) 利用Guava的Joiner List<String> list 阅读全文
posted @ 2021-11-19 10:29 lemmon_water 阅读(8447) 评论(0) 推荐(0)
摘要: 要实现这个功能需要用到trunc这个函数对时间的操作 select trunc(sysdate) from dual --2021-11-03 今天的日期为2021-11-03 select trunc(sysdate, 'mm') from dual --2021-11-01 返回当月第一天. s 阅读全文
posted @ 2021-11-03 11:41 lemmon_water 阅读(2722) 评论(0) 推荐(0)
摘要: 最近想用Echart做数据统计的图形显示,数据来源是MySQL数据库,自然需要根据不同的搜索条件筛选出表中的数据,用比较多的就是时间的参数吧! 常用的mysql时间的条件进行检索的SQL语句: 数据表名:tableName 字段名:myDate 最近7天的, SELECT * FROM tableN 阅读全文
posted @ 2021-11-01 17:22 lemmon_water 阅读(1460) 评论(0) 推荐(1)
摘要: 1.GETRANGE 截取得到的子字符串。 redis 127.0.0.1:6379> SET mykey "This is my test key" OK redis 127.0.0.1:6379> GETRANGE mykey 0 3 "This" redis 127.0.0.1:6379> G 阅读全文
posted @ 2021-10-12 16:25 lemmon_water 阅读(55) 评论(0) 推荐(0)
摘要: oracle wm_concat(column)函数使我们经常会使用到的,下面就教您如何使用oraclewm_concat(column)函数实现字段合并 如: shopping: u_id goods num 1 苹果 2 2 梨子 5 1 西瓜 4 3 葡萄 1 3 香蕉 1 1 橘子 3 想要 阅读全文
posted @ 2021-09-24 14:46 lemmon_water 阅读(563) 评论(0) 推荐(0)
摘要: 语法形式为 () -> {},其中 () 用来描述参数列表,{} 用来描述方法体,-> 为 lambda运算符 ,读作(goes to) public class Test1 { public static void main(String[] args) { //无参无返回 NoReturnNoP 阅读全文
posted @ 2021-09-23 21:45 lemmon_water 阅读(215) 评论(0) 推荐(0)
摘要: SELECT * FROM ( SELECT TMP_PAGE.*, ROWNUM ROW_ID FROM ( SELECT z.BOX_ID AS BOX_ID, ( CASE WHEN p.ZC_UUID IS NOT NULL THEN p.BOX_CODE ELSE z.BOX_CODE E 阅读全文
posted @ 2021-09-18 14:44 lemmon_water 阅读(172) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 10 下一页