锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av伊人久久综合密臀性色 ,亚洲一区二区三区播放在线,久久久久亚洲精品无码系列http://www.tkk7.com/heting/archive/2010/10/11/334364.html璐烘尯璐烘尯Mon, 11 Oct 2010 07:26:00 GMThttp://www.tkk7.com/heting/archive/2010/10/11/334364.htmlhttp://www.tkk7.com/heting/comments/334364.htmlhttp://www.tkk7.com/heting/archive/2010/10/11/334364.html#Feedback0http://www.tkk7.com/heting/comments/commentRss/334364.htmlhttp://www.tkk7.com/heting/services/trackbacks/334364.html 

create or replace package CARD_SERVICE_DAY_VIEW_PARAM  is 
   
function set_param(num varcharreturn varchar
   
function get_param  return varchar

   
end CARD_SERVICE_DAY_VIEW_PARAM; 
commit;
   
   
create or replace package body CARD_SERVICE_DAY_VIEW_PARAM is 
       paramValue 
varchar(10); 
       
function set_param(num varcharreturn varchar is 
       
begin 
         paramValue:
=num; 
         
return num; 
        
end;  
       
       
function get_param return varchar is 
       
begin 
         
return paramValue; 
       
end
       
   
end CARD_SERVICE_DAY_VIEW_PARAM;    
commit;

create or replace view CARD_SERVICE_DAY_VIEW as 
select
cs.id,
cs.card_id,
cs.lock_money,
to_char(cs.check_time,
'yyyy-MM-dd hh24:mi'as check_time,
cs.name,cs.phone,( months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),
'yyyyMMdd'),
to_date(to_char(cs.CHECK_TIME,
'yyyyMMdd'),'yyyyMMdd'))  ) as curr_batch,
(
select count(1from transaction where card_id=cs.card_id and tran_time between cs.check_time and to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),'yyyyMMdd'and (curr_bal-money)<cs.lock_money) as condition,
(
select count(1from service_transaction where batch=(months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),'yyyyMMdd'),to_date(to_char(cs.CHECK_TIME,'yyyyMMdd'),'yyyyMMdd'))) and s_id=cs.id) as hasAudit 
from card_service cs 
where cs.state='T' 
and 
months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),
'yyyyMMdd'),to_date(to_char(cs.CHECK_TIME,'yyyyMMdd'),'yyyyMMdd')) in (1,2,3,4,5,6
order by cs.card_id
commit;


璐烘尯 2010-10-11 15:26 鍙戣〃璇勮
]]>
oracle澶氬垪杞竴琛?/title><link>http://www.tkk7.com/heting/archive/2010/03/03/314431.html</link><dc:creator>璐烘尯</dc:creator><author>璐烘尯</author><pubDate>Wed, 03 Mar 2010 09:49:00 GMT</pubDate><guid>http://www.tkk7.com/heting/archive/2010/03/03/314431.html</guid><wfw:comment>http://www.tkk7.com/heting/comments/314431.html</wfw:comment><comments>http://www.tkk7.com/heting/archive/2010/03/03/314431.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/heting/comments/commentRss/314431.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/heting/services/trackbacks/314431.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">create</span><span style="color: #000000"> </span><span style="color: #0000ff">table</span><span style="color: #000000"> m_researcher_stock_rel(N_SEC_CODE  </span><span style="font-weight: bold; color: #000000">CHAR</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">6</span><span style="color: #000000">)<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />, C_RESEARCHER_CODE </span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">20</span><span style="color: #000000">))<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">drop</span><span style="color: #000000"> </span><span style="color: #0000ff">table</span><span style="color: #000000"> m_researcher_stock_rel<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">select</span><span style="color: #000000"> </span><span style="color: #808080">*</span><span style="color: #000000"> </span><span style="color: #0000ff">from</span><span style="color: #000000"> m_researcher_stock_rel<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000"> </span><span style="color: #0000ff">into</span><span style="color: #000000"> m_researcher_stock_rel </span><span style="color: #0000ff">values</span><span style="color: #000000">(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">000297</span><span style="color: #ff0000">'</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">chenpeng</span><span style="color: #ff0000">'</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000"> </span><span style="color: #0000ff">into</span><span style="color: #000000"> m_researcher_stock_rel </span><span style="color: #0000ff">values</span><span style="color: #000000">(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">000297</span><span style="color: #ff0000">'</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">peopeo</span><span style="color: #ff0000">'</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000"> </span><span style="color: #0000ff">into</span><span style="color: #000000"> m_researcher_stock_rel </span><span style="color: #0000ff">values</span><span style="color: #000000">(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">000297</span><span style="color: #ff0000">'</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">aaa</span><span style="color: #ff0000">'</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000"> </span><span style="color: #0000ff">into</span><span style="color: #000000"> m_researcher_stock_rel </span><span style="color: #0000ff">values</span><span style="color: #000000">(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">000297</span><span style="color: #ff0000">'</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">bbb</span><span style="color: #ff0000">'</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000"> </span><span style="color: #0000ff">into</span><span style="color: #000000"> m_researcher_stock_rel </span><span style="color: #0000ff">values</span><span style="color: #000000">(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">000297</span><span style="color: #ff0000">'</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">ccc</span><span style="color: #ff0000">'</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">SELECT</span><span style="color: #000000">    n_sec_code, TRANSLATE (</span><span style="color: #ff00ff">LTRIM</span><span style="color: #000000"> (</span><span style="font-weight: bold; color: #000000">text</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">/</span><span style="color: #ff0000">'</span><span style="color: #000000">), </span><span style="color: #ff0000">'</span><span style="color: #ff0000">*/</span><span style="color: #ff0000">'</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">*,</span><span style="color: #ff0000">'</span><span style="color: #000000">) researcherList<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff">FROM</span><span style="color: #000000"> (</span><span style="color: #0000ff">SELECT</span><span style="color: #000000"> ROW_NUMBER () </span><span style="color: #0000ff">OVER</span><span style="color: #000000"> (PARTITION </span><span style="color: #0000ff">BY</span><span style="color: #000000"> n_sec_code </span><span style="color: #0000ff">ORDER</span><span style="color: #000000"> </span><span style="color: #0000ff">BY</span><span style="color: #000000"> n_sec_code,<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />                   lvl </span><span style="color: #0000ff">DESC</span><span style="color: #000000">) rn,<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />                  n_sec_code, </span><span style="font-weight: bold; color: #000000">text</span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff">FROM</span><span style="color: #000000"> (</span><span style="color: #0000ff">SELECT</span><span style="color: #000000">      n_sec_code, </span><span style="color: #0000ff">LEVEL</span><span style="color: #000000"> lvl,<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />                              SYS_CONNECT_BY_PATH (c_researcher_code,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">/</span><span style="color: #ff0000">'</span><span style="color: #000000">) </span><span style="font-weight: bold; color: #000000">text</span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />                        </span><span style="color: #0000ff">FROM</span><span style="color: #000000"> (</span><span style="color: #0000ff">SELECT</span><span style="color: #000000">    n_sec_code, c_researcher_code </span><span style="color: #0000ff">as</span><span style="color: #000000"> c_researcher_code,<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />                                        ROW_NUMBER () </span><span style="color: #0000ff">OVER</span><span style="color: #000000"> (PARTITION </span><span style="color: #0000ff">BY</span><span style="color: #000000"> n_sec_code </span><span style="color: #0000ff">ORDER</span><span style="color: #000000"> </span><span style="color: #0000ff">BY</span><span style="color: #000000"> n_sec_code,c_researcher_code) x<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />                                  </span><span style="color: #0000ff">FROM</span><span style="color: #000000"> m_researcher_stock_rel<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />                              </span><span style="color: #0000ff">ORDER</span><span style="color: #000000"> </span><span style="color: #0000ff">BY</span><span style="color: #000000"> n_sec_code, c_researcher_code) a<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />                   CONNECT </span><span style="color: #0000ff">BY</span><span style="color: #000000"> n_sec_code </span><span style="color: #808080">=</span><span style="color: #000000"> PRIOR n_sec_code </span><span style="color: #808080">AND</span><span style="color: #000000"> x </span><span style="color: #808080">-</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">1</span><span style="color: #000000"> </span><span style="color: #808080">=</span><span style="color: #000000"> PRIOR x))<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />   </span><span style="color: #0000ff">WHERE</span><span style="color: #000000"> rn </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">1</span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">ORDER</span><span style="color: #000000"> </span><span style="color: #0000ff">BY</span><span style="color: #000000"> n_sec_code;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />棰勬兂鐨勭粨鏋滄垚鍔熷嚭鐜幫紝澶氳鏁版嵁鎴愬姛姹囨誨埌涓琛岋紝鐗規鍒嗕韓涓庡ぇ瀹躲傚浜庝綘鑷繁鐨勫簲鐢ㄤ腑錛屽彧闇瑕佹妸SQL涓?#8220;n_sec_code”<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />鎹負浣犵殑鐢ㄦ潵姹囨葷殑鍒楋紝“c_researcher_code”鏇挎崲涓洪渶鍚堝茍鏂囨湰鐨勫垪錛?#8220;m_researcher_stock_rel”鏇挎崲涓轟綘鐨勮〃鍚嶏紝灝辨槸榪欎箞綆鍗曘?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="http://www.tkk7.com/heting/aggbug/314431.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/heting/" target="_blank">璐烘尯</a> 2010-03-03 17:49 <a href="http://www.tkk7.com/heting/archive/2010/03/03/314431.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>sql2005涓璬atetime 鏃墮棿綾誨瀷鐨勬牸寮忓寲http://www.tkk7.com/heting/archive/2009/11/10/301792.html璐烘尯璐烘尯Tue, 10 Nov 2009 03:06:00 GMThttp://www.tkk7.com/heting/archive/2009/11/10/301792.htmlhttp://www.tkk7.com/heting/comments/301792.htmlhttp://www.tkk7.com/heting/archive/2009/11/10/301792.html#Feedback0http://www.tkk7.com/heting/comments/commentRss/301792.htmlhttp://www.tkk7.com/heting/services/trackbacks/301792.htmlSelect CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM
Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06
Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16
Select CONVERT(varchar(100), GETDATE(), 3): 16/05/06
Select CONVERT(varchar(100), GETDATE(), 4): 16.05.06
Select CONVERT(varchar(100), GETDATE(), 5): 16-05-06
Select CONVERT(varchar(100), GETDATE(), 6): 16 05 06
Select CONVERT(varchar(100), GETDATE(), 7): 05 1606
Select CONVERT(varchar(100), GETDATE(), 8): 10:57:46
Select CONVERT(varchar(100), GETDATE(), 9): 05 16 2006 10:57:46:827AM
Select CONVERT(varchar(100), GETDATE(), 10): 05-16-06
Select CONVERT(varchar(100), GETDATE(), 11): 06/05/16
Select CONVERT(varchar(100), GETDATE(), 12): 060516
Select CONVERT(varchar(100), GETDATE(), 13): 16 05 2006 10:57:46:937
Select CONVERT(varchar(100), GETDATE(), 14): 10:57:46:967
Select CONVERT(varchar(100), GETDATE(), 20): 2006-05-16 10:57:47
Select CONVERT(varchar(100), GETDATE(), 21): 2006-05-16 10:57:47.157
Select CONVERT(varchar(100), GETDATE(), 22): 05/16/06 10:57:47 AM
Select CONVERT(varchar(100), GETDATE(), 23): 2006-05-16
Select CONVERT(varchar(100), GETDATE(), 24): 10:57:47
Select CONVERT(varchar(100), GETDATE(), 25): 2006-05-16 10:57:47.250
Select CONVERT(varchar(100), GETDATE(), 100): 05 16 2006 10:57AM
Select CONVERT(varchar(100), GETDATE(), 101): 05/16/2006
Select CONVERT(varchar(100), GETDATE(), 102): 2006.05.16
Select CONVERT(varchar(100), GETDATE(), 103): 16/05/2006
Select CONVERT(varchar(100), GETDATE(), 104): 16.05.2006
Select CONVERT(varchar(100), GETDATE(), 105): 16-05-2006
Select CONVERT(varchar(100), GETDATE(), 106): 16 05 2006
Select CONVERT(varchar(100), GETDATE(), 107): 05 162006
Select CONVERT(varchar(100), GETDATE(), 108): 10:57:49
Select CONVERT(varchar(100), GETDATE(),109): 05 16 2006 10:57:49:437AM
Select CONVERT(varchar(100), GETDATE(), 110): 05-16-2006
Select CONVERT(varchar(100), GETDATE(), 111): 2006/05/16
Select CONVERT(varchar(100), GETDATE(), 112): 20060516
Select CONVERT(varchar(100), GETDATE(), 113): 16 05 2006 10:57:49:513
Select CONVERT(varchar(100), GETDATE(), 114): 10:57:49:547
Select CONVERT(varchar(100), GETDATE(), 120): 2006-05-16 10:57:49
Select CONVERT(varchar(100), GETDATE(), 121): 2006-05-16 10:57:49.700
Select CONVERT(varchar(100), GETDATE(), 126): 2006-05-16T10:57:49.827
Select CONVERT(varchar(100), GETDATE(), 130): 18 ???? ?????? 1427 10:57:49:907AM
Select CONVERT(varchar(100), GETDATE(), 131): 18/04/1427 10:57:49:920AM



璐烘尯 2009-11-10 11:06 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲成a人片77777kkkk| a级亚洲片精品久久久久久久| 婷婷久久久亚洲欧洲日产国码AV| 农村寡妇一级毛片免费看视频| 久久久久亚洲AV无码观看| 免费国产成人α片| 亚洲国产精品乱码一区二区| 人妻在线日韩免费视频| 亚洲ⅴ国产v天堂a无码二区| 日韩精品无码一区二区三区免费 | 国产精品久久久久免费a∨| 亚洲另类古典武侠| 成人片黄网站A毛片免费| 亚洲精品久久久久无码AV片软件| 性盈盈影院免费视频观看在线一区| 亚洲一区二区三区在线观看网站| 在人线av无码免费高潮喷水| 亚洲精品无码久久久久牙蜜区| 暖暖免费高清日本中文| 无忧传媒视频免费观看入口| 亚洲热妇无码AV在线播放| 国产色在线|亚洲| 日韩成人免费aa在线看| 日韩电影免费在线观看网址| 亚洲国产婷婷六月丁香| 亚洲视频在线观看免费视频| 亚洲精品伦理熟女国产一区二区| 亚洲Aⅴ无码一区二区二三区软件 亚洲AⅤ视频一区二区三区 | 亚洲日韩av无码| 亚欧色视频在线观看免费| 亚洲欧美国产欧美色欲| 久久久久噜噜噜亚洲熟女综合| 国产精品99久久免费观看| 亚洲乱码国产乱码精华| 亚洲中文字幕无码中文字在线| 亚洲精品国产免费| 欧洲亚洲综合一区二区三区| 亚洲Av无码精品色午夜 | 亚洲成a人片在线观看日本| 无人在线观看免费高清视频| 一级做a爰片久久毛片免费看|