上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: Oracle行转列就是把某一个字段的值作为唯一值,然后另外一个字段的行值转换成它的列值。 案例原始数据如下: 方法一:利用group by实现 select t.column_a, sum(decode(dm, '01', t.je, 0)) 费1, sum(decode(dm, '02', t.j 阅读全文
posted @ 2022-09-04 19:18 DAYTOY-105 阅读(1593) 评论(0) 推荐(0)
摘要: 1、wm_concat(列名) 解析:该函数可以把列值以“,”号分割起来,并显示成一行。 例: select wm_concat(column_a) from usera.table_a where a.column_b = '123'; 说明:把结果里的逗号替换成";" select replac 阅读全文
posted @ 2022-09-04 19:03 DAYTOY-105 阅读(2824) 评论(0) 推荐(0)
摘要: 1 merge into的形式 merge into [ target - table ] a using [ source - table sql ] b on ([ conditional expression ] and [ .. . ] .. .) when matched then [ u 阅读全文
posted @ 2022-09-04 18:52 DAYTOY-105 阅读(2469) 评论(0) 推荐(0)
摘要: 1、数据库导出dmp文件 exp usera/usera@10.1.10.11:1521/orcl file=D:\usera.dmp 说明: exp 用户名/密码@数据库名 file=E:\file.dmp tables=(要导出的表名称,以逗号隔开) exp时遇到密码有特殊字符(!@#)等时,o 阅读全文
posted @ 2022-09-04 18:41 DAYTOY-105 阅读(3061) 评论(0) 推荐(0)
摘要: JAVA的Random类的用法详解,参考链接 https://blog.csdn.net/huiweizuotiandeni/article/details/70244526 阅读全文
posted @ 2022-09-04 14:18 DAYTOY-105 阅读(24) 评论(0) 推荐(0)
摘要: 1 随机整数 方法一 Math.random(): //获取一个[min,max] 区间内的随机整数 //说明Math.random()产生[0.0,1.0)的小数 int randomNumber = (int) Math.round(Math.random()*(max-min)+min); 方 阅读全文
posted @ 2022-09-04 14:17 DAYTOY-105 阅读(69) 评论(0) 推荐(0)
摘要: 1 迭代器简介(Iterator) 迭代器是一种设计模式,它是一个对象,它可以遍历并选择序列中的对象,而开发人员不需要了解该序列的底层结构。迭代器通常被称为“轻量级”对象,因为创建它的代价小。 Java中的Iterator功能比较简单,并且只能单向移动: (1) 使用方法iterator()要求容器 阅读全文
posted @ 2022-09-04 13:03 DAYTOY-105 阅读(1538) 评论(0) 推荐(0)
摘要: import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; public class test { public static void main( 阅读全文
posted @ 2022-09-04 12:34 DAYTOY-105 阅读(20) 评论(0) 推荐(0)
摘要: package test; public class test { public static void main(String[] args) { String IDNumber = "642221199505062528"; if("".equals(IDNumber) || IDNumber 阅读全文
posted @ 2022-09-04 12:33 DAYTOY-105 阅读(120) 评论(0) 推荐(0)
摘要: String[] month = new String[12]; LocalDate today = LocalDate.now(); for(int i = 1;i <= 12; i++){ LocalDate localDate = today.minusMonths(i); String ss 阅读全文
posted @ 2022-09-04 12:33 DAYTOY-105 阅读(676) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 下一页