摘要: 1、不带参数的nextInt()会生成所有有效的整数(包含正数,负数,0) 2、带参的nextInt(int x)则会生成一个范围在0~x(不包含X)内的任意正整数 例如:int x=new Random.nextInt(100); 则x为一个0~99的任意整数 3、生成一个指定范围内的整数 阅读全文
posted @ 2018-04-18 16:46 半入江风半入云 阅读(26826) 评论(1) 推荐(2) 编辑
摘要: 1、decode(value,if1,then1,if2,then2,if3,then3,...,else) select DECODE(3,1,'case1',2,'case2',3,'case3',4,'case4',5,'case5',null) as testDecode from dual 阅读全文
posted @ 2018-04-18 10:03 半入江风半入云 阅读(675) 评论(0) 推荐(0) 编辑