锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av伊人久久综合密臀性色 ,亚洲一区二区三区播放在线,久久久久亚洲精品无码系列http://m.tkk7.com/heting/archive/2010/10/11/334364.html璐烘尯璐烘尯Mon, 11 Oct 2010 07:26:00 GMThttp://m.tkk7.com/heting/archive/2010/10/11/334364.htmlhttp://m.tkk7.com/heting/comments/334364.htmlhttp://m.tkk7.com/heting/archive/2010/10/11/334364.html#Feedback0http://m.tkk7.com/heting/comments/commentRss/334364.htmlhttp://m.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://m.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://m.tkk7.com/heting/archive/2010/03/03/314431.html</guid><wfw:comment>http://m.tkk7.com/heting/comments/314431.html</wfw:comment><comments>http://m.tkk7.com/heting/archive/2010/03/03/314431.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/heting/comments/commentRss/314431.html</wfw:commentRss><trackback:ping>http://m.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://m.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://m.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://m.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://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            <br /> <img src="http://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />棰勬兂鐨勭粨鏋滄垚鍔熷嚭鐜幫紝澶氳鏁版嵁鎴愬姛姹囨誨埌涓琛岋紝鐗規鍒嗕韓涓庡ぇ瀹躲傚浜庝綘鑷繁鐨勫簲鐢ㄤ腑錛屽彧闇瑕佹妸SQL涓?#8220;n_sec_code”<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />鎹負浣犵殑鐢ㄦ潵姹囨葷殑鍒楋紝“c_researcher_code”鏇挎崲涓洪渶鍚堝茍鏂囨湰鐨勫垪錛?#8220;m_researcher_stock_rel”鏇挎崲涓轟綘鐨勮〃鍚嶏紝灝辨槸榪欎箞綆鍗曘?br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="http://m.tkk7.com/heting/aggbug/314431.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/heting/" target="_blank">璐烘尯</a> 2010-03-03 17:49 <a href="http://m.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://m.tkk7.com/heting/archive/2009/11/10/301792.html璐烘尯璐烘尯Tue, 10 Nov 2009 03:06:00 GMThttp://m.tkk7.com/heting/archive/2009/11/10/301792.htmlhttp://m.tkk7.com/heting/comments/301792.htmlhttp://m.tkk7.com/heting/archive/2009/11/10/301792.html#Feedback0http://m.tkk7.com/heting/comments/commentRss/301792.htmlhttp://m.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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲成人动漫在线| 亚色九九九全国免费视频| 日韩一区二区免费视频| 国产成人精品日本亚洲直接| 亚洲免费在线播放| 亚洲高清在线视频| 未满十八18禁止免费无码网站 | 国产小视频在线免费| 亚洲av无码日韩av无码网站冲| 插B内射18免费视频| 亚洲日韩一区二区三区| 在线看片无码永久免费aⅴ| 国产99久久亚洲综合精品| 亚洲精品国自产拍在线观看| jizz免费观看| 亚洲成AV人片在线观看ww| 一级毛片在线免费看| 亚洲一级毛片免费观看| 日韩a在线观看免费观看| 免费国产a理论片| 亚洲成AV人片在线观看ww| 1000部拍拍拍18勿入免费视频软件| 亚洲免费二区三区| 国产精品国产午夜免费福利看| 黄色免费网址大全| 亚洲AV永久无码精品成人| 99爱在线精品免费观看| 美国毛片亚洲社区在线观看| 亚洲精品无码午夜福利中文字幕| 午夜老司机永久免费看片| 亚洲啪AV永久无码精品放毛片| 亚洲成人国产精品| 91福利视频免费| 亚洲精品无码Av人在线观看国产| 一区二区三区观看免费中文视频在线播放 | 激情97综合亚洲色婷婷五 | 免费在线观看日韩| 免费无码成人AV在线播放不卡| 亚洲人成无码网站在线观看 | 亚洲毛片网址在线观看中文字幕| 欧洲精品99毛片免费高清观看|