摘要: 1)、按分钟执行 每分钟执行 TRUNC(SYSDATE,'mi') + 1/(24*60) 每五分钟执行 TRUNC(SYSDATE,'mi') + 5/(24*60) 2)、按小时执行 每小时执行 TRUNC(SYSDATE,'mi') + 1/24 每隔五小时执行 TRUNC(SYSDATE, 阅读全文
posted @ 2018-05-04 11:19 半入江风半入云 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: --复制表结构但不复制表数据create table copytest as select * from t_employee WHERE 1<>1; SELECT * FROM copytest;--复制表结构的同时复制数据create table copytest2 as SELECT * FR 阅读全文
posted @ 2018-04-17 17:20 半入江风半入云 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1、前端代码(Velocity) <div> <form action="getUploadFileName.htm" id="uploadfiles" method="post" enctype="multipart/form-data"> <input type="file" name="fil 阅读全文
posted @ 2018-04-17 11:28 半入江风半入云 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 采用字符串作为模板内容的 Velocity简单实例。 原文地址:https://blog.csdn.net/5iasp/article/details/7885180 package com.test.velocity; 原文地址:https://blog.csdn.net/5iasp/articl 阅读全文
posted @ 2018-04-16 11:50 半入江风半入云 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: create table a( aid number, aname varchar2(20));create table b( bid number, bname varchar2(20)); create table c( cid number, cname varchar2(20)); inse 阅读全文
posted @ 2018-04-16 10:19 半入江风半入云 阅读(157) 评论(0) 推荐(0) 编辑
摘要: List<Object> list1=new ArrayList<Object>(); list1.add(1); list1.add(2); List<Object> list2=new ArrayList<Object>(); list2.add(0); list2.add(3); list1. 阅读全文
posted @ 2018-04-13 15:46 半入江风半入云 阅读(35764) 评论(0) 推荐(0) 编辑
摘要: 1、返回两个数中较大者 create or replace function chooseMax(v1 in number,v2 in number) return numberis v_max number;begin if(sign(v1-v2)>=0) then v_max:=v1; elsi 阅读全文
posted @ 2018-03-29 15:43 半入江风半入云 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 一、在文件上传时的代码,判断是否需要进行压缩 if(!filename.endsWith(".xlsx")&&!filename.endsWith(".xls")){ String p="Http://"+domain+":90"+SERVER_IMG_COURSE_CHOOSE_PATH+"/"+ 阅读全文
posted @ 2018-01-25 09:13 半入江风半入云 阅读(927) 评论(0) 推荐(0) 编辑