51,386
社区成员




java.util.Date currTime = new java.util.Date();
currTime.setTime(System.currentTimeMillis());
logger.info(currTime.toString() + ":start execute cmd: " + sql);
rs = pstm.executeQuery();
currTime.setTime(System.currentTimeMillis());
logger.info(currTime.toString() + ": execute ok, go on...");
SQL1:
select yy.* from
(
select row_number() over(order by rownum) rn, zz.* from
(
select RecID from B_COMMEND partition(data200911)
) zz
) yy where rn <= 5000000 and rn >= 4999990;
SQL2:
select * from
(
select rownum rn, zz.* from
(
select RecID from B_COMMEND partition(data200911)
) zz where rownum <= 5000000
) where rn >= 4999990 ;
select * from
(
select row_number() over(order by rownum) rn, zz.* from
(
select CID from T_Channel
) zz
) yy
where rn <= 30000 and rn >= 29990;
select *, func_1(...) from T_Channel
where CID in (001, 002, 003..., 010)
select * from
(
select rownum as rn, a.* from
(
select --/*+ first_rows */
CID, CNAME, CMANAGERNAME, CMANAGERTEL, CPARENTCID,
COWNERAREAID,COWNERAREANAME,CTYPEID
COWNERAREAID,COWNERAREANAME,CTYPEID,
--pkgJFChannel.GetCTypeNameByCTypeID(CTYPEID) as CTYPENAME,
--pkgJFChannel.GetCTypeClassByCTypeID(CTypeID) as CTypeClass,
FLID
--, F_JF_GetOwnerAreaName(COWNERAREAID) as Areaname
from T_Channel c
where 1=1
order by rownum
) a where rownum <= 30000
) where rn >= 29990 ;
select * from
(
select row_number() over(order by rownum) rn, zz.* from
(
select
CID, CNAME, CMANAGERNAME, CMANAGERTEL, CPARENTCID,
COWNERAREAID,COWNERAREANAME,CTYPEID
--pkgJFChannel.GetCTypeNameByCTypeID(CTYPEID) as CTYPENAME,
--pkgJFChannel.GetCTypeClassByCTypeID(CTypeID) as CTypeClass,
--F_JF_GetOwnerAreaName(COWNERAREAID) as Areaname
from T_Channel
) zz
) yy
where rn <= 30000 and rn >= 29990;