摘要: SELECT * FROM TABLENAME WHERE DBMS_LOB.INSTR(字段名,UTL_RAW.CAST_TO_RAW('数据'),1,1)<>0; 阅读全文
posted @ 2021-01-28 16:16 遗忘无际 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: select * from all_tables where table_name like '%LOG'; 阅读全文
posted @ 2020-09-07 17:31 遗忘无际 阅读(409) 评论(0) 推荐(0) 编辑
摘要: public static int countChar(String str,char ch) { // 将字符串转换为字符数组 char[] chs = str.toCharArray(); // 定义变量count存储字符串出现的次数 int count = 0; for(int i = 0;i 阅读全文
posted @ 2020-07-22 14:47 遗忘无际 阅读(2180) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { String filePath="/2652E01E/20200715/20200715111432119AZg6ByUMTdeDAvGk3HfXRCZS4B4=.pdf"; String file=filePath. 阅读全文
posted @ 2020-07-13 15:01 遗忘无际 阅读(843) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); Date fprqDate = sdf.parse("20200101 阅读全文
posted @ 2020-06-28 10:54 遗忘无际 阅读(656) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { String aString="w14-rq22.3"; //只保留数字 aString = aString.replaceAll("[^(0-9)]",""); System.out.println(aString) 阅读全文
posted @ 2020-06-21 14:02 遗忘无际 阅读(100) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { double a = 0; double b = 11.0; System.out.println(String.format("%.2f", a)); System.out.println(String.format 阅读全文
posted @ 2020-06-21 13:43 遗忘无际 阅读(125) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { HashSet<Integer> has = new HashSet<Integer>(); has.add(1); has.add(0); has.add(5); has.add(12); has.add(1); h 阅读全文
posted @ 2020-06-18 15:52 遗忘无际 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1.如果2张表的字段一致,并且希望插入全部数据,可以用这种方法: INSERT INTO 目标表 SELECT * FROM 来源表;insert into insertTest1 select * from insertTest2;2.如果只希望导入指定字段,可以用这种方法: INSERT INT 阅读全文
posted @ 2020-06-11 17:51 遗忘无际 阅读(1276) 评论(0) 推荐(0) 编辑
摘要: 1、替换值 decode(条件,值1,返回值1,值2,返回值2,...值n,返回值n,缺省值) 这个函数运行的结果是,当字段或字段的运算的值等于值1时,该函数返回值2,否则返回值3 当然值1,值2,值3也可以是表达式,这个函数使得某些sql语句简单了许多 select t.id,t.name,t.a 阅读全文
posted @ 2020-06-11 17:50 遗忘无际 阅读(426) 评论(0) 推荐(0) 编辑