ITeye博客

2014 年文章归档

共 4 篇文章

java 开发 oracle分页通用方法

package com.richsum.hyoa.dao.impl; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hibernate.Criteria; import org.hibernate.SQLQuery; import org.hibernate.Query; import org.hibern…

2014-11-21 15:03 · java · Java · Oracle

oracle 开窗函数使用,merge

select cast(last_operate_tm as timestamp) query_time, plate_num, container_no, waybill_no, operate_zone_code, waybill_route_status, operate_batch_code, lostime, warntime, zone_code, high_worth, countnum, exception_node, appreciation_service_type, cast(doubt_miss_tm as timestamp) doubt_miss_tm from …

2014-10-14 15:17 · Oracle · Oracle

oracle case when then 用法

SELECT D.DEPT_CODE, SUM(T.GATHER_ZONE_PLAN_NUM), SUM(T.ZONE_PLAN_NUM), SUM(T.GATHER_ZONE_ACTUAL_NUM), SUM(T.ZONE_ACTUAL_NUM), SUM(T.MISS_LOAD_BILL_NUM), SUM(T.SURPLUS_DEPART_NUM), SUM(T.NOT_DEPART_NUM), SUM(T.LATE_NESS_DEPART_NUM), SUM(CASE WHEN TRUNC(TO_NUMBER(T.ACTUAL_END_TM-T.PLAN_END_TM)*1440)<…

2014-10-11 12:15 · Oracle · oracle case when then

oracle 创建无参存储过程

create or replace procedure pro_miss_history as t_waybillNo varchar2(20); t_checkCode varchar2(20); t_checkTime date; t_missTime date; t_compareTime date; t_compareCheckTime date; cursor cur_task is --查询核查次数大于1的数据 select f1.waybillcode, f1.check_zone from ompweb.tt_doubt_miss_check f1 where f1.doub…

2014-09-23 15:26 · Oracle