??xml version="1.0" encoding="utf-8" standalone="yes"?>97久久综合精品久久久综合,青青草精品视频,亚洲电影成人http://www.aygfsteel.com/itspy/archive/2008/04/29/197020.htmlitspyitspyTue, 29 Apr 2008 01:25:00 GMThttp://www.aygfsteel.com/itspy/archive/2008/04/29/197020.htmlhttp://www.aygfsteel.com/itspy/comments/197020.htmlhttp://www.aygfsteel.com/itspy/archive/2008/04/29/197020.html#Feedback0http://www.aygfsteel.com/itspy/comments/commentRss/197020.htmlhttp://www.aygfsteel.com/itspy/services/trackbacks/197020.htmlhttp://www.xici.net/b3761/d43293.htm

在开发数据库应用中,l常会遇到处理时间的问题Q如查询指定旉的记录等。下面就q些常见的问题,l合自己的一些经验,和大家探讨一下这c问题?br />
首先介绍一下,SQL Server里处理时间的几个主要函数的用法:


getdate()函数Q取得系l当前的日期和时间。返回gؓdatetimecd的。 
       用法Qgetdate()
       例子Q?
       select getdate() as dte,dateadd(day,-1,getdate()) as nowdat
       输出l果Q?
       dte              nowdat
       ---------------------------  ---------------------------
       1999-11-21 19:13:10.083    1999-11-20 19:13:10.083
  
       (1 row(s) affected)
       
datepart()函数Q以整数的Ş式返回时间的指定部分?
        用法Qdatepart(datepart,date)
        参数说明Qdatepart时要q回的时间的部分Q常用取值year、month、day、hour、minute?br />              date是所指定的时间?br />         例子Q?br />         SELECT DATEPART(month, GETDATE()) AS 'Month Number'
        输出l果Q?br />         Month Number
        ------------
        11

        (1 row(s) affected)

dateadd()函数Q通过l指定的旉的指定部分加上一个整数gq回一个新旉倹{?br />         用法Qdateadd(datepart,number,date)
        参数说明Qdatepart(同上Q?br />              date(同上)
             number要增加的|整型Q可正可负,正D回date之后的时间|负D回date
             之前的时间?br />         例子Q?br />          select getdate() as today
         select dateadd(day,-1,getdate())
         select dateadd(day,1,getdate())
        输出Q?br />          today           
         ---------------------------
         1999-11-21 19:42:41.410

         (1 row(s) affected)

         yesterday         
         ---------------------------
         1999-11-20 19:42:41.410

         (1 row(s) affected)

         tomorrow          
         ---------------------------
         1999-11-22 19:42:41.410

         (1 row(s) affected)

datediff()函数Q返回两个时间以指定旉部分来计的差倹{返回整数倹{如1991-6-12?991-6-21之间以天
        来算相差9?1998-6-12?999-6-23按年相?q_1999-12-1?999-3-12按月相?个月
        用法Qdatediff(darepart,date1,date2)
        参数说明QdatepartQ同?
             date1、date2(同上date)
        例子Q?br />          select datediff(month,'1991-6-12','1992-6-21') as a
        输出Q?br />          a     
         -----------
         12

         (1 row(s) affected)

itspy 2008-04-29 09:25 发表评论
]]>
jmenu的cssW记http://www.aygfsteel.com/itspy/archive/2008/01/24/177601.htmlitspyitspyThu, 24 Jan 2008 15:12:00 GMThttp://www.aygfsteel.com/itspy/archive/2008/01/24/177601.htmlhttp://www.aygfsteel.com/itspy/comments/177601.htmlhttp://www.aygfsteel.com/itspy/archive/2008/01/24/177601.html#Feedback0http://www.aygfsteel.com/itspy/comments/commentRss/177601.htmlhttp://www.aygfsteel.com/itspy/services/trackbacks/177601.html主页Q有CZQ:http://plugins.jquery.com/project/jdMenu



jmenu是我见过菜单中最完善的,加上它用的jqueryQ我对jquery比较熟悉Q所以用v来比较方便,现记录笔记如下?br />
本文章首发于 http://www.openj.cn

可以通过讄jd_menu_vertical或者jd_menu来配|菜单是水^的,q是垂直菜单。我在笔C删除了所有垂直相关的QSQ?/pre>


ul.jd_menu_slate {
 height: 19px;
 background-color: #DDF;
 background: url(gradient.png) repeat-x;
 border: 1px solid #70777D;
 border-top: 1px solid #A5AFB8;
 border-left: 1px solid #A5AFB8;
 clear: both;
}

ul.jd_menu_slate a,
ul.jd_menu_slate a:active,
ul.jd_menu_slate a:link,
ul.jd_menu_slate a:visited {
 text-decoration: none;
 color: #FFF;
}
ul.jd_menu_slate ul li a,
ul.jd_menu_slate ul li a:active,
ul.jd_menu_slate ul li a:link,
ul.jd_menu_slate ul li a:visited {
 color: #70777D;
}

/**全局生效Q配|真正显C的风格Q因为所胡的信息最后都是通过在li中的子元素显C出?*/
ul.jd_menu_slate li {
 font-family: Tahoma, sans-serif;
 font-size: 11px;
 padding: 2px 6px 4px 6px;
 cursor: pointer;
 white-space: nowrap;
 color: #FFF;
}

/**菜单栏目的样?*/
ul.jd_menu_slate li.jd_menu_active_menubar,
ul.jd_menu_slate li.jd_menu_hover_menubar {
 padding-left: 5px;
 border-left: 1px solid #ABB5BC;
 padding-right: 5px;
 border-right: 1px solid #929AA1;
 border-right: 1px solid #70777D;
 color: #FFF;
 background: url(gradient-alt.png) repeat-x;
}

 
/**下拉菜单所使用的样式,不管是多菜单**/
ul.jd_menu_slate ul {
 background: #ABB5BC;
 border: 1px solid #70777D;
}
ul.jd_menu_slate ul li {
 padding: 3px 10px 3px 4px;
 background: #E6E6E6;
 border: none;
 color: #70777D;
}

 

/**只有使用动态菜单(AJAX)才会用的?*/
ul.jd_menu_slate ul li.jd_menu_active,
ul.jd_menu_slate ul li.jd_menu_hover {
 background: url(gradient.png) repeat-x;
 padding-top: 2px;
 border-top: 1px solid #ABB5BC;
 padding-bottom: 2px;
 border-bottom: 1px solid #929AA1;
 color: #FFF;
}

/**菜单栏目的样?*/
ul.jd_menu_slate ul li.jd_menu_active a.jd_menu_active,
ul.jd_menu_slate ul li.jd_menu_hover a.jd_menu_hover {
 color: #FFF;
}



itspy 2008-01-24 23:12 发表评论
]]>JDBCq接Oracle数据库时出现的ORA-12505错误及解军_?http://www.aygfsteel.com/itspy/archive/2007/12/20/169072.htmlitspyitspyThu, 20 Dec 2007 08:42:00 GMThttp://www.aygfsteel.com/itspy/archive/2007/12/20/169072.htmlhttp://www.aygfsteel.com/itspy/comments/169072.htmlhttp://www.aygfsteel.com/itspy/archive/2007/12/20/169072.html#Feedback2http://www.aygfsteel.com/itspy/comments/commentRss/169072.htmlhttp://www.aygfsteel.com/itspy/services/trackbacks/169072.html
Oracle
问题描述Q?br /> 今天使用jdbcq接oracle 10.2.0.1.0 数据库的时候出C下列错误Q?/p>

Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

而直接通过plsql可以正常q接数据?或者可以通过sqlplus q接数据?/p>

l过debug和查扄关的资料发现问题原因如下Q?br /> jdbcq接数据库的时候,需要用数据库的sid_nameQ而不是数据库的services_name
而用plsqlq接数据库的时候,只需要数据库的services_name卛_Q所以修改连接字W串中的services_name 为sid_name

附:
察看数据库中当前的sid:

SQL> select INSTANCE_NAME from v$instance;

INSTANCE_NAME
----------------
hasl



itspy 2007-12-20 16:42 发表评论
]]>
如何让RadRails 昄英文菜单http://www.aygfsteel.com/itspy/archive/2007/08/04/134388.htmlitspyitspySat, 04 Aug 2007 05:08:00 GMThttp://www.aygfsteel.com/itspy/archive/2007/08/04/134388.htmlhttp://www.aygfsteel.com/itspy/comments/134388.htmlhttp://www.aygfsteel.com/itspy/archive/2007/08/04/134388.html#Feedback1http://www.aygfsteel.com/itspy/comments/commentRss/134388.htmlhttp://www.aygfsteel.com/itspy/services/trackbacks/134388.html我安装的是Aptana RadRails Q下载地址如下?br>http://www.aptana.com/download_rails_rdt.php

我是中文的XPQ安装之后菜单部分是英文Q部分是中文Q看的好隑֏Q到|上找了半天才找到如何把它换成英文的。不敢独享,现将Ҏ介绍如下?br>

到configuration/config.ini下添加如下一行即?br>
osgi.nl=en_US


keyword QAptana RadRails  语言?中文 英文


itspy 2007-08-04 13:08 发表评论
]]>
MYSQL控制C无法输入中文的解军_?/title><link>http://www.aygfsteel.com/itspy/archive/2007/04/18/111654.html</link><dc:creator>itspy</dc:creator><author>itspy</author><pubDate>Wed, 18 Apr 2007 07:57:00 GMT</pubDate><guid>http://www.aygfsteel.com/itspy/archive/2007/04/18/111654.html</guid><wfw:comment>http://www.aygfsteel.com/itspy/comments/111654.html</wfw:comment><comments>http://www.aygfsteel.com/itspy/archive/2007/04/18/111654.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/itspy/comments/commentRss/111654.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/itspy/services/trackbacks/111654.html</trackback:ping><description><![CDATA[     摘要: MYSQL控制C无法输入中文的解军_? <br> <br>使用mysql命oq入控制?默认情况下是无法输入中文,q且也无法正常显C数据库中已l有的中文的.解决办法? <br>在进入mysql控制台时,加上参数.CZ如下: <br>mysql.exe --user=root --password=root --default-character-set=gbk  <a href='http://www.aygfsteel.com/itspy/archive/2007/04/18/111654.html'>阅读全文</a><img src ="http://www.aygfsteel.com/itspy/aggbug/111654.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/itspy/" target="_blank">itspy</a> 2007-04-18 15:57 <a href="http://www.aygfsteel.com/itspy/archive/2007/04/18/111654.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>垃圾邮g的终极解军_法,只针对个人E原创Q?/title><link>http://www.aygfsteel.com/itspy/archive/2007/02/12/99562.html</link><dc:creator>itspy</dc:creator><author>itspy</author><pubDate>Mon, 12 Feb 2007 15:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/itspy/archive/2007/02/12/99562.html</guid><wfw:comment>http://www.aygfsteel.com/itspy/comments/99562.html</wfw:comment><comments>http://www.aygfsteel.com/itspy/archive/2007/02/12/99562.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.aygfsteel.com/itspy/comments/commentRss/99562.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/itspy/services/trackbacks/99562.html</trackback:ping><description><![CDATA[     摘要: 在文中我介l三U特别有效的ҎQ其中有一U终极解军_法,q种l极Ҏ肯定能解决你的问题(q些Ҏ只针对个人用P不针对企业用P?<br>  <a href='http://www.aygfsteel.com/itspy/archive/2007/02/12/99562.html'>阅读全文</a><img src ="http://www.aygfsteel.com/itspy/aggbug/99562.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/itspy/" target="_blank">itspy</a> 2007-02-12 23:28 <a href="http://www.aygfsteel.com/itspy/archive/2007/02/12/99562.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何用JSON定义一个数l与函数[直接用例子说明]http://www.aygfsteel.com/itspy/archive/2007/02/02/97494.htmlitspyitspyFri, 02 Feb 2007 05:28:00 GMThttp://www.aygfsteel.com/itspy/archive/2007/02/02/97494.htmlhttp://www.aygfsteel.com/itspy/comments/97494.htmlhttp://www.aygfsteel.com/itspy/archive/2007/02/02/97494.html#Feedback0http://www.aygfsteel.com/itspy/comments/commentRss/97494.htmlhttp://www.aygfsteel.com/itspy/services/trackbacks/97494.html ,hello:function(a){
alert(a);
}
}//定义了一个函数helloQ如何用可以参考下面的body元素的onload属性?

var array=[1,2,3,4] //定义了一个数l?
  阅读全文

itspy 2007-02-02 13:28 发表评论
]]>
UNICODE的一点理?/title><link>http://www.aygfsteel.com/itspy/archive/2006/11/12/80721.html</link><dc:creator>itspy</dc:creator><author>itspy</author><pubDate>Sun, 12 Nov 2006 10:17:00 GMT</pubDate><guid>http://www.aygfsteel.com/itspy/archive/2006/11/12/80721.html</guid><wfw:comment>http://www.aygfsteel.com/itspy/comments/80721.html</wfw:comment><comments>http://www.aygfsteel.com/itspy/archive/2006/11/12/80721.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/itspy/comments/commentRss/80721.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/itspy/services/trackbacks/80721.html</trackback:ping><description><![CDATA[ <div width="100%"> <div style="FLOAT: right"> <strong> </strong> </div> <div>看了好多UNICODE的标准了Q经常在不同的地方看C一致的说法Q现在把我的理解写下来? <p></p><p><font color="#ff0000">请大家最好带着批判的眼光来看,里面可能有很多错误,不要误了大家Q下面列Z很多参考文献。如果发C错误Q请大家指出或讨论?/font></p><p>1)UNICODE定义的字W集Q刚开始只准备?6位,可是好像不够用,因ؓ16位最多只能容U?万多个字W,后来扩展到32位了Q好像实际上只有31位,最高位不用Q永qؓ0Q?/p><p>2)UTF-8是UNICODE的一U编码Ş式,׃Unicode开始只准备?6位来表示所有字W,所以一般情况下UTF8~码也只会出?Q?个字节,但实际上它可以支持到6个字节(但是6个字节有一些保留位Q真正有效的位也刚好只?2Q刚好容UUNICODE字符集。  后面附UTF-8的详l编码方式,可以看出Z?个字节,有效位只?2位?/p><p>3)q_所说的UNICODE~码指的是UTF-16Q 它使用<span id="highlight_tag" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; COLOR: #ee6600; PADDING-TOP: 0px; BACKGROUND-COLOR: yellow; EE6600: ">16位,或者是32?/span>来表CZ个字W。UTF-16与UTF-8cMQ只是跨步用了2个字节,而不是UTF-8的一个字节了Q也是要么2个字节,要么4个字节,不可能出?个或?个字节的~码Q。当然如果用UTF-16q种~码方式Q文件必需要以一定的方式在开头申明用了q种方式Q如何申明就不说了,q方面的资料|上很多Qƈ且非怸致?/p><p>4)UTF-32没什么好说的了,|上资料写的很明白,是直接用一?2位来表示UNICODE。UTF-32与UTF-16一P他也要在文g的开头以一定的方式来申明它使用了UTF-16~码Q要不然׃能正解码了?/p><p></p><p>  计算机编码大全(强烈推荐Q?a class="contentlink" target="_blank"><font color="#000050">http://www.cppblog.com/oosky/archive/2005/12/13/1723.aspx</font></a></p><p><a class="contentlink" target="_blank"><font color="#000050">http://bbs.netton.cn/ShowPost.asp?ThreadID=1906</font></a></p><p><a class="contentlink" target="_blank"><font color="#000050">http://iask.sina.com.cn/b/3798538.html</font></a></p><p><a class="contentlink" target="_blank"><font color="#000050">http://www.matrix.org.cn/thread.shtml?topicId=34590&forumId=19</font></a></p><p><a class="contentlink" target="_blank"><font color="#000050">http://www.ismayday.com/article.asp?id=61</font></a></p><p><a class="contentlink" target="_blank"><font color="#4455aa">http://www.cppblog.com/liangbo/archive/2006/04/23/6103.html</font></a></p><p><a class="contentlink" target="_blank"><font color="#4455aa">http://dev.csdn.net/article/35/35305.shtm</font></a></p><p><a class="contentlink" target="_blank"><font color="#4455aa">http://support.uufriend.com/blog/tom/99220.htm</font></a></p><p><a class="contentlink" target="_blank"><font color="#4455aa">http://spaces.msn.com/iamtin/Blog/cns!1pvp_euYfEkmt-djP-0RlwBw!302.entry</font></a></p><p><a class="contentlink" target="_blank"><font color="#4455aa">http://news.onlinedown.net/info/13164-1.htm</font></a></p><p><a class="contentlink" target="_blank"><font color="#4455aa">http://www.linuxfans.org/nuke/modules.php?name=News&file=article&op=view&sid=1749</font></a></p><p><br />UTF-8的编码方?/p><p>U-00000000 - U-0000007F:  0xxxxxxx  <br />U-00000080 - U-000007FF:  110xxxxx 10xxxxxx  <br />U-00000800 - U-0000FFFF:  1110xxxx 10xxxxxx 10xxxxxx  <br />U-00010000 - U-001FFFFF:  11110xxx 10xxxxxx 10xxxxxx 10xxxxxx  <br />U-00200000 - U-03FFFFFF:  111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx  <br />U-04000000 - U-7FFFFFFF:  1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx <br /><br /><br />?原来发表?a >http://bbs.xml.org.cn/dispbbs.asp?boardID=1&replyID=41780&ID=32741&skin=1</a>.<br />但由于一些原?我上此站Ҏ些慢,p{放于?/p></div> </div> <img src ="http://www.aygfsteel.com/itspy/aggbug/80721.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/itspy/" target="_blank">itspy</a> 2006-11-12 18:17 <a href="http://www.aygfsteel.com/itspy/archive/2006/11/12/80721.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">㰲</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">IJ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ij</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ݸ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ҵ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƶ</a>| <a href="http://" target="_blank">˫</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽȪ</a>| <a href="http://" target="_blank">ٲ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ľ</a>| <a href="http://" target="_blank">Ͳ</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>