02 2010 档案

摘要:如何判断oracle大字段(clob)为空?http://topic.csdn.net/u/20081110/15/094fcaf8-8b93-42c1-b8a9-364dc27f3e55.html--assume x is a clob field --x is null --x equal to empth_clob, dbms_lob.getlength(x) = 0 select * fr... 阅读全文
posted @ 2010-02-23 17:21 hellofei 阅读(5618) 评论(0) 推荐(0)
摘要:Apache Tomcat 服务因 0 (0x0) 服务性错误而停止http://www.blogjava.net/kent/articles/201148.html操作系统:Windows Server 2003 SP2JDK 版本为 6.0 update 6安装在 D:\Java 目录下Tomcat 版本为 6.0.16 安装 D:\Tomcat 目录下故障描述:成功安装后 Tomcat 无法... 阅读全文
posted @ 2010-02-22 17:19 hellofei 阅读(2062) 评论(0) 推荐(0)
摘要:Apache 防盗链(Apache Anti-Leech)技术的简单实现http://www.xiaohui.com/dev/server/20070330-apache-anti-leech.htm 一. 遭遇图片盗链  我的个人网站http://www.xiaohui.com/使用的是国外付费空间,有流量限制。今天是 2007.03.29,收到主机商的通知邮件,提醒我本月的流量即将超出配额。&... 阅读全文
posted @ 2010-02-20 16:14 hellofei 阅读(1090) 评论(0) 推荐(0)
摘要:Tomcat 下配置一个ip绑定多个域名http://pkblog.blog.sohu.com/68921246.html 在网上找了半天也没找到相关的资料,都说的太含糊.本人对tomcat下配置 一ip对多域名的方法详细如下,按下面配置一定能成功,经过测试了.<Host name="localhost" debug="0" appBase="D:\\Tomcat 5.0\\webapps"... 阅读全文
posted @ 2010-02-20 16:11 hellofei 阅读(1073) 评论(0) 推荐(0)
摘要:oracle 日期函数 处理大全http://hi.baidu.com/jianbin43/blog/item/9e6e0ed7211350dfa144dfee.html 在oracle中处理日期大全 TO_DATE格式Day:dd number 12dy abbreviated friday spelled out fridayddspth spelled out, ordinal twelft... 阅读全文
posted @ 2010-02-03 19:31 hellofei 阅读(402) 评论(0) 推荐(0)
摘要:oracle日期函数集锦http://www.javaeye.com/topic/190221 一、 常用日期数据格式1.Y或YY或YYY 年的最后一位,两位或三位SQL> Select to_char(sysdate,'Y') from dual;TO_CHAR(SYSDATE,'Y')--------------------7SQL> Select to_char(sysdate,... 阅读全文
posted @ 2010-02-03 19:31 hellofei 阅读(361) 评论(0) 推荐(0)
摘要:一、ORA-01476: divisor is equal to zero错误:SELECT * FROM tablename WHERE executions > 0AND disk_reads/executions > 500正确:SELECT * FROM tablename WHERE executions > 0AND DECODE(executions, 0, 0,d... 阅读全文
posted @ 2010-02-03 19:19 hellofei 阅读(449) 评论(0) 推荐(0)
摘要:oracle GROUP 函數(AVG,COUNT,MAX,MIN,SUM,NVL,UID,USER,USERENV,DECODE)http://blog.blueshop.com.tw/pili9141/articles/52569.aspx 1GROUP函數23AVG([distinct|all]n)4--◎獲得平均值5--◎不包含null值67ex.8selectav... 阅读全文
posted @ 2010-02-03 18:54 hellofei 阅读(2122) 评论(0) 推荐(0)
摘要:oracle 常用轉換函數(to_char,to_date,to_number)http://blog.blueshop.com.tw/pili9141/articles/52565.aspx 1to_char(d[,fmt[,'nlsparams']])2--◎轉換日期欄位資料成自定格式文字3--◎當沒有輸入fmt時,將使用預定的日期格式轉換4--◎'nlsp... 阅读全文
posted @ 2010-02-03 18:54 hellofei 阅读(20817) 评论(0) 推荐(0)
摘要:oracle 日期常用函數 (ADD_MONTHS,LAST_DAY,NEXT_DAY,MONTHS_BETWEEN,NEW_TIME,ROUND,TRUNC)http://blog.blueshop.com.tw/pili9141/articles/52505.aspx 1日期運算函數23ADD_MONTHS(d,n)4--時間點d再加上n個月56ex.7selectsysdate,add_mo... 阅读全文
posted @ 2010-02-03 18:53 hellofei 阅读(18407) 评论(0) 推荐(0)
摘要:oracle 日期常用函數 (日期運算)http://blog.blueshop.com.tw/pili9141/articles/52501.aspx 1日期運算231.更改日期顯示的format4ex.5ALTERSESSIONSETNLS_DATE_FORMAT='YYYY/MM/DD';6階段作業已被更改78selectsysdatefromdual;910SYSDATE11-------... 阅读全文
posted @ 2010-02-03 18:53 hellofei 阅读(3401) 评论(0) 推荐(0)
摘要:oracle 日期常用函數 (SYSDATE、日期格式)http://blog.blueshop.com.tw/pili9141/articles/52486.aspx 1SYSDATE2--◎可得到目前系統的時間34ex.5selectsysdatefromdual;67sysdate8----------920-SEP-071011常用之日期格式1213日期格式說明14------... 阅读全文
posted @ 2010-02-03 18:52 hellofei 阅读(1729) 评论(0) 推荐(0)
摘要:oracle 內建函數-字串常用函數http://blog.blueshop.com.tw/pili9141/articles/52418.aspx 1字串常用函數21.字串的開始位置是132.函數中最後一個字是'B'的,表示該函數,有能力處理單位元資料與處理雙位元資料45A.字串函數傳回字串值67CHR(n)8--可將ASCIICODE轉成databasecharacterset910ex.11... 阅读全文
posted @ 2010-02-03 18:52 hellofei 阅读(1724) 评论(0) 推荐(0)
摘要:oracle 內建函數-數字常用函數http://blog.blueshop.com.tw/pili9141/articles/52397.aspx 1CEIL(n)2--獲得>n或=n的最小整數34ex.5selectceil(3.01)fromdual;67cil(3.01)8----------941011selectceil(-3.01)fromdual;1213ceil(-3.01... 阅读全文
posted @ 2010-02-03 18:51 hellofei 阅读(355) 评论(0) 推荐(0)
摘要:SQL 指令 (join)http://blog.blueshop.com.tw/pili9141/articles/52281.aspx 1表a23欄1欄24----------------5aa16bb27cc989表b1011欄a欄b12----------------131X142Y153Z1617innerjoin1819select欄1,欄2,欄bfrom表a,表bwhere表a.欄2... 阅读全文
posted @ 2010-02-03 18:50 hellofei 阅读(306) 评论(0) 推荐(0)
摘要:SQL 指令 (select)http://blog.blueshop.com.tw/pili9141/articles/52279.aspx 1select2--◎查詢資料庫中資料,結尾需加上「;」34查詢所有欄位*51.select*from資料表a6--◎查詢資料表a所有欄位,欄位順序為建表格時之順序78查詢多欄92.select欄1a,欄2bfrom資料表a10--... 阅读全文
posted @ 2010-02-03 18:48 hellofei 阅读(401) 评论(0) 推荐(0)
摘要:SQL 指令(insert、update、delete)http://blog.blueshop.com.tw/pili9141/articles/52260.aspx 1insert2--◎將資料存入資料庫中,結尾加「;」3--◎值為字串時,需加單引號「'」,值為數字時不需加單引號,值與值之間以「,」隔開451.insertinto資料表a(欄位1,欄位2)values(... 阅读全文
posted @ 2010-02-03 18:46 hellofei 阅读(1544) 评论(0) 推荐(0)
摘要:互联网网站的反爬虫策略浅析http://robbin.javaeye.com/blog/451014因为搜索引擎的流行,网络爬虫已经成了很普及网络技术,除了专门做搜索的Google,Yahoo,微软,百度以外,几乎每个大型门户网站都有自己的搜索引擎,大大小小叫得出来名字得就几十种,还有各种不知名的几千几万种,对于一个内容型驱动的网站来说,受到网络爬虫的光顾是不可避免的。一些智能的搜索引擎爬虫的爬取... 阅读全文
posted @ 2010-02-03 11:24 hellofei 阅读(386) 评论(0) 推荐(2)
摘要:JSP转发和重定向的区别http://blog.csdn.net/CYHJRX/archive/2009/02/26/3938252.aspx 好长时间不看,又把基础只是给忘了。今天好好的再看看。呵呵呵......温故而知新啊!!!1.RequestDispatcher.forward()――转发 是在服务器端起作用,当使用forward()时, Servlet engin... 阅读全文
posted @ 2010-02-02 16:40 hellofei 阅读(8575) 评论(0) 推荐(0)