﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-heting-随笔分类-数据库</title><link>http://www.blogjava.net/heting/category/42696.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 11 Oct 2010 22:28:20 GMT</lastBuildDate><pubDate>Mon, 11 Oct 2010 22:28:20 GMT</pubDate><ttl>60</ttl><item><title>oracle 创建带参视图</title><link>http://www.blogjava.net/heting/archive/2010/10/11/334364.html</link><dc:creator>贺挺</dc:creator><author>贺挺</author><pubDate>Mon, 11 Oct 2010 07:26:00 GMT</pubDate><guid>http://www.blogjava.net/heting/archive/2010/10/11/334364.html</guid><wfw:comment>http://www.blogjava.net/heting/comments/334364.html</wfw:comment><comments>http://www.blogjava.net/heting/archive/2010/10/11/334364.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/heting/comments/commentRss/334364.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/heting/services/trackbacks/334364.html</trackback:ping><description><![CDATA[<p>&nbsp;</p>
<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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #0000ff">create</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">or</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">replace</span><span style="color: #000000">&nbsp;package&nbsp;CARD_SERVICE_DAY_VIEW_PARAM&nbsp;&nbsp;</span><span style="color: #0000ff">is</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">function</span><span style="color: #000000">&nbsp;set_param(num&nbsp;</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">)&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">function</span><span style="color: #000000">&nbsp;get_param&nbsp;&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">end</span><span style="color: #000000">&nbsp;CARD_SERVICE_DAY_VIEW_PARAM;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">commit</span><span style="color: #000000">;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">create</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">or</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">replace</span><span style="color: #000000">&nbsp;package&nbsp;body&nbsp;CARD_SERVICE_DAY_VIEW_PARAM&nbsp;</span><span style="color: #0000ff">is</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;paramValue&nbsp;</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">);&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">function</span><span style="color: #000000">&nbsp;set_param(num&nbsp;</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">)&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">is</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">begin</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;paramValue:</span><span style="color: #808080">=</span><span style="color: #000000">num;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;num;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">end</span><span style="color: #000000">;&nbsp;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">function</span><span style="color: #000000">&nbsp;get_param&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">is</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">begin</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;paramValue;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">end</span><span style="color: #000000">;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">end</span><span style="color: #000000">&nbsp;CARD_SERVICE_DAY_VIEW_PARAM;&nbsp;&nbsp;&nbsp;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">commit</span><span style="color: #000000">;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">create</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">or</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">replace</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">view</span><span style="color: #000000">&nbsp;CARD_SERVICE_DAY_VIEW&nbsp;</span><span style="color: #0000ff">as</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">select</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />cs.id,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />cs.card_id,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />cs.lock_money,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />to_char(cs.check_time,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyy-MM-dd&nbsp;hh24:mi</span><span style="color: #ff0000">'</span><span style="color: #000000">)&nbsp;</span><span style="color: #0000ff">as</span><span style="color: #000000">&nbsp;check_time,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />cs.name,cs.phone,(&nbsp;months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">),<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />to_date(to_char(cs.CHECK_TIME,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">),</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">))&nbsp;&nbsp;)&nbsp;</span><span style="color: #0000ff">as</span><span style="color: #000000">&nbsp;curr_batch,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />(</span><span style="color: #0000ff">select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">count</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">1</span><span style="color: #000000">)&nbsp;</span><span style="color: #0000ff">from</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">transaction</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">where</span><span style="color: #000000">&nbsp;card_id</span><span style="color: #808080">=</span><span style="color: #000000">cs.card_id&nbsp;</span><span style="color: #808080">and</span><span style="color: #000000">&nbsp;tran_time&nbsp;</span><span style="color: #808080">between</span><span style="color: #000000">&nbsp;cs.check_time&nbsp;</span><span style="color: #808080">and</span><span style="color: #000000">&nbsp;to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">)&nbsp;</span><span style="color: #808080">and</span><span style="color: #000000">&nbsp;(curr_bal</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #000000">money</span><span style="color: #000000">)</span><span style="color: #808080">&lt;</span><span style="color: #000000">cs.lock_money)&nbsp;</span><span style="color: #0000ff">as</span><span style="color: #000000">&nbsp;condition,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />(</span><span style="color: #0000ff">select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">count</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">1</span><span style="color: #000000">)&nbsp;</span><span style="color: #0000ff">from</span><span style="color: #000000">&nbsp;service_transaction&nbsp;</span><span style="color: #0000ff">where</span><span style="color: #000000">&nbsp;batch</span><span style="color: #808080">=</span><span style="color: #000000">(months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">),to_date(to_char(cs.CHECK_TIME,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">),</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">)))&nbsp;</span><span style="color: #808080">and</span><span style="color: #000000">&nbsp;s_id</span><span style="color: #808080">=</span><span style="color: #000000">cs.id)&nbsp;</span><span style="color: #0000ff">as</span><span style="color: #000000">&nbsp;hasAudit&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">from</span><span style="color: #000000">&nbsp;card_service&nbsp;cs&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">where</span><span style="color: #000000">&nbsp;cs.state</span><span style="color: #808080">=</span><span style="color: #ff0000">'</span><span style="color: #ff0000">T</span><span style="color: #ff0000">'</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #808080">and</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">),to_date(to_char(cs.CHECK_TIME,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">),</span><span style="color: #ff0000">'</span><span style="color: #ff0000">yyyyMMdd</span><span style="color: #ff0000">'</span><span style="color: #000000">))&nbsp;</span><span style="color: #808080">in</span><span style="color: #000000">&nbsp;(</span><span style="font-weight: bold; color: #800000">1</span><span style="color: #000000">,</span><span style="font-weight: bold; color: #800000">2</span><span style="color: #000000">,</span><span style="font-weight: bold; color: #800000">3</span><span style="color: #000000">,</span><span style="font-weight: bold; color: #800000">4</span><span style="color: #000000">,</span><span style="font-weight: bold; color: #800000">5</span><span style="color: #000000">,</span><span style="font-weight: bold; color: #800000">6</span><span style="color: #000000">)&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">order</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">by</span><span style="color: #000000">&nbsp;cs.card_id<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">commit</span><span style="color: #000000">;</span></div>
<img src ="http://www.blogjava.net/heting/aggbug/334364.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/heting/" target="_blank">贺挺</a> 2010-10-11 15:26 <a href="http://www.blogjava.net/heting/archive/2010/10/11/334364.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>oracle多列转一行</title><link>http://www.blogjava.net/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.blogjava.net/heting/archive/2010/03/03/314431.html</guid><wfw:comment>http://www.blogjava.net/heting/comments/314431.html</wfw:comment><comments>http://www.blogjava.net/heting/archive/2010/03/03/314431.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/heting/comments/commentRss/314431.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #0000ff">create</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">table</span><span style="color: #000000">&nbsp;m_researcher_stock_rel(N_SEC_CODE&nbsp;&nbsp;</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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />,&nbsp;C_RESEARCHER_CODE&nbsp;</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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">drop</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">table</span><span style="color: #000000">&nbsp;m_researcher_stock_rel<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">select</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">*</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">from</span><span style="color: #000000">&nbsp;m_researcher_stock_rel<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">into</span><span style="color: #000000">&nbsp;m_researcher_stock_rel&nbsp;</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">,&nbsp;</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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">into</span><span style="color: #000000">&nbsp;m_researcher_stock_rel&nbsp;</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">,&nbsp;</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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">into</span><span style="color: #000000">&nbsp;m_researcher_stock_rel&nbsp;</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">,&nbsp;</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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">into</span><span style="color: #000000">&nbsp;m_researcher_stock_rel&nbsp;</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">,&nbsp;</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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">insert</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">into</span><span style="color: #000000">&nbsp;m_researcher_stock_rel&nbsp;</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">,&nbsp;</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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">SELECT</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;n_sec_code,&nbsp;TRANSLATE&nbsp;(</span><span style="color: #ff00ff">LTRIM</span><span style="color: #000000">&nbsp;(</span><span style="font-weight: bold; color: #000000">text</span><span style="color: #000000">,&nbsp;</span><span style="color: #ff0000">'</span><span style="color: #ff0000">/</span><span style="color: #ff0000">'</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff0000">'</span><span style="color: #ff0000">*/</span><span style="color: #ff0000">'</span><span style="color: #000000">,&nbsp;</span><span style="color: #ff0000">'</span><span style="color: #ff0000">*,</span><span style="color: #ff0000">'</span><span style="color: #000000">)&nbsp;researcherList<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">FROM</span><span style="color: #000000">&nbsp;(</span><span style="color: #0000ff">SELECT</span><span style="color: #000000">&nbsp;ROW_NUMBER&nbsp;()&nbsp;</span><span style="color: #0000ff">OVER</span><span style="color: #000000">&nbsp;(PARTITION&nbsp;</span><span style="color: #0000ff">BY</span><span style="color: #000000">&nbsp;n_sec_code&nbsp;</span><span style="color: #0000ff">ORDER</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">BY</span><span style="color: #000000">&nbsp;n_sec_code,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lvl&nbsp;</span><span style="color: #0000ff">DESC</span><span style="color: #000000">)&nbsp;rn,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n_sec_code,&nbsp;</span><span style="font-weight: bold; color: #000000">text</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">FROM</span><span style="color: #000000">&nbsp;(</span><span style="color: #0000ff">SELECT</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n_sec_code,&nbsp;</span><span style="color: #0000ff">LEVEL</span><span style="color: #000000">&nbsp;lvl,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SYS_CONNECT_BY_PATH&nbsp;(c_researcher_code,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">/</span><span style="color: #ff0000">'</span><span style="color: #000000">)&nbsp;</span><span style="font-weight: bold; color: #000000">text</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">FROM</span><span style="color: #000000">&nbsp;(</span><span style="color: #0000ff">SELECT</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;n_sec_code,&nbsp;c_researcher_code&nbsp;</span><span style="color: #0000ff">as</span><span style="color: #000000">&nbsp;c_researcher_code,<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ROW_NUMBER&nbsp;()&nbsp;</span><span style="color: #0000ff">OVER</span><span style="color: #000000">&nbsp;(PARTITION&nbsp;</span><span style="color: #0000ff">BY</span><span style="color: #000000">&nbsp;n_sec_code&nbsp;</span><span style="color: #0000ff">ORDER</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">BY</span><span style="color: #000000">&nbsp;n_sec_code,c_researcher_code)&nbsp;x<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">FROM</span><span style="color: #000000">&nbsp;m_researcher_stock_rel<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">ORDER</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">BY</span><span style="color: #000000">&nbsp;n_sec_code,&nbsp;c_researcher_code)&nbsp;a<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CONNECT&nbsp;</span><span style="color: #0000ff">BY</span><span style="color: #000000">&nbsp;n_sec_code&nbsp;</span><span style="color: #808080">=</span><span style="color: #000000">&nbsp;PRIOR&nbsp;n_sec_code&nbsp;</span><span style="color: #808080">AND</span><span style="color: #000000">&nbsp;x&nbsp;</span><span style="color: #808080">-</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">1</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">=</span><span style="color: #000000">&nbsp;PRIOR&nbsp;x))<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">WHERE</span><span style="color: #000000">&nbsp;rn&nbsp;</span><span style="color: #808080">=</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">1</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">ORDER</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">BY</span><span style="color: #000000">&nbsp;n_sec_code;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />预想的结果成功出现，多行数据成功汇总到一行，特此分享与大家。对于你自己的应用中，只需要把SQL中&#8220;n_sec_code&#8221;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />换为你的用来汇总的列，&#8220;c_researcher_code&#8221;替换为需合并文本的列，&#8220;m_researcher_stock_rel&#8221;替换为你的表名，就是这么简单。<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span></div>
<img src ="http://www.blogjava.net/heting/aggbug/314431.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/heting/" target="_blank">贺挺</a> 2010-03-03 17:49 <a href="http://www.blogjava.net/heting/archive/2010/03/03/314431.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>sql2005中datetime 时间类型的格式化</title><link>http://www.blogjava.net/heting/archive/2009/11/10/301792.html</link><dc:creator>贺挺</dc:creator><author>贺挺</author><pubDate>Tue, 10 Nov 2009 03:06:00 GMT</pubDate><guid>http://www.blogjava.net/heting/archive/2009/11/10/301792.html</guid><wfw:comment>http://www.blogjava.net/heting/comments/301792.html</wfw:comment><comments>http://www.blogjava.net/heting/archive/2009/11/10/301792.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/heting/comments/commentRss/301792.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/heting/services/trackbacks/301792.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.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">0</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:57AM<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">1</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">2</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">06.05</span><span style="color: #000000">.</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">3</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">4</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16.05</span><span style="color: #000000">.</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">5</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">6</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">7</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">,&nbsp;</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">8</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">46</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">9</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">46</span><span style="color: #000000">:827AM<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">11</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">12</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">060516</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">13</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">46</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">937</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">14</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">46</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">967</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">20</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">47</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">21</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">47.157</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">22</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">06</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">47</span><span style="color: #000000">&nbsp;AM<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">23</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">24</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">47</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">25</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">47.250</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:57AM<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">101</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">102</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006.05</span><span style="color: #000000">.</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">103</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">104</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16.05</span><span style="color: #000000">.</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">105</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">106</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">107</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">,&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">108</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),</span><span style="font-weight: bold; color: #800000">109</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49</span><span style="color: #000000">:437AM<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">110</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">111</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">112</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">20060516</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">113</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">513</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">114</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">547</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">120</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">121</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">16</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49.700</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">126</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">2006</span><span style="color: #808080">-</span><span style="font-weight: bold; color: #800000">05</span><span style="color: #808080">-</span><span style="color: #000000">16T10:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49.827</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">130</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">18</span><span style="color: #000000">&nbsp;????&nbsp;??????&nbsp;</span><span style="font-weight: bold; color: #800000">1427</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49</span><span style="color: #000000">:907AM<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Select</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">CONVERT</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">varchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">100</span><span style="color: #000000">),&nbsp;</span><span style="color: #ff00ff">GETDATE</span><span style="color: #000000">(),&nbsp;</span><span style="font-weight: bold; color: #800000">131</span><span style="color: #000000">):&nbsp;</span><span style="font-weight: bold; color: #800000">18</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">04</span><span style="color: #808080">/</span><span style="font-weight: bold; color: #800000">1427</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">57</span><span style="color: #000000">:</span><span style="font-weight: bold; color: #800000">49</span><span style="color: #000000">:920AM<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span></div>
<img src ="http://www.blogjava.net/heting/aggbug/301792.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/heting/" target="_blank">贺挺</a> 2009-11-10 11:06 <a href="http://www.blogjava.net/heting/archive/2009/11/10/301792.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>