03 2010 档案

摘要:-jar参数运行应用时classpath的设置方法http://www.zeali.net/entry/15 当用java -jar yourJarExe.jar来运行一个经过打包的应用程序的时候,你会发现如何设置-classpath参数应用程序都找不到相应的第三方类,报ClassNotFound错误。实际上这是由于当使用-jar参数运行的时候,java VM会屏蔽所有的外部classpath,而... 阅读全文
posted @ 2010-03-31 18:38 hellofei 阅读(2168) 评论(0) 推荐(0)
摘要:一些淡忘了的Java日期时间函数http://www.blogjava.net/rongxh7/archive/2009/06/11/281519.html今天舍友问我,JDBC中的stmt.setDate()怎么挺入当前时间,传入参数new java.util.Date()不行,传入 参数new java.sql.Date(),试了一会,还是不行。此时,才发觉,自从用了Hibernate,JPA... 阅读全文
posted @ 2010-03-31 15:23 hellofei 阅读(640) 评论(0) 推荐(0)
摘要:查找Clob字段中包含指定记录的方法select count(*) from game_article t where dbms_lob.instr(t.content, utl_raw.cast_to_raw(convert('duowan.com','utf8')), 1, 1) > 0或者select count(*) from game_article t where dbms_lo... 阅读全文
posted @ 2010-03-25 18:49 hellofei 阅读(806) 评论(0) 推荐(0)
摘要:dbms_lob包学习笔记之三:instr和substr存储过程http://wwwwwfco.itpub.net/post/5073/27882instr和substr存储过程,分析内部大对象的内容instr函数与substr函数instr函数用于从指定的位置开始,从大型对象中查找第N个与模式匹配的字符串。用于查找内部大对象中的字符串的instr函数语法如下:dbms_lob.instr(lob... 阅读全文
posted @ 2010-03-25 15:54 hellofei 阅读(11548) 评论(0) 推荐(0)
摘要:Oracle中的Raw类型解释http://space.e800.com.cn/sunnyboy/entity/view/?id=17404   RAW,类似于CHAR,声明方式RAW(L),L为长度,以字节为单位,作为数据库列最大2000,作为变量最大32767字节。  LONG RAW,类似于LONG,作为数据库列最大存储2G字节的数据,作为变量最大32760字节  建表操作:  create... 阅读全文
posted @ 2010-03-25 14:44 hellofei 阅读(7199) 评论(0) 推荐(1)
摘要:How to Submit a Form Using JavaScripthttp://www.javascript-coder.com/javascript-form/javascript-form-submit.phtmlGenerally, a form is submitted when the user presses a submit button. However, sometime... 阅读全文
posted @ 2010-03-17 17:24 hellofei 阅读(592) 评论(0) 推荐(0)
摘要:http://blog.chinaunix.net/u/12569/showart_171507.html最近做了一阶段的AJAX开发,有一些心得体会。日后会慢慢写出来,也请AJAXer多多指教~ 刚开始写AJAX代码的时候,直接参照的是AJAX基础教程一书中的代码(该书真的很不错,是AJAX入门的经典教材,是图灵出版社的。计算机方面的书籍,我最信任的就是O'R和图灵的)。 该书的创建XMLHt... 阅读全文
posted @ 2010-03-17 17:17 hellofei 阅读(332) 评论(0) 推荐(0)
摘要:window.location和window.open的区别 window.location = "http://www.xxxxxxxx.net" 跳转后有后退功能 window.location.replace("http://www.xxxxxxxx.net") 跳转后没有后退功能 window.open("http://www.xxxxxxxx.net") 要新的窗口打开链接 阅读全文
posted @ 2010-03-17 17:15 hellofei 阅读(298) 评论(0) 推荐(0)
摘要:误用Connection.setAutoCommit导致的数据库死锁问题http://www.javaeye.com/topic/52044误用Connection.setAutoCommit导致的数据库死锁问题。系统在发布到用户的的服务器了,运行一段时间偶尔出现某些功能不能正常运行,甚至不能自动恢复,严重导致服务器当机,表现为服务器不响应用户的请求,数据库有大量的锁。在服务器重启后才能恢复正常。... 阅读全文
posted @ 2010-03-03 14:44 hellofei 阅读(1087) 评论(0) 推荐(0)
摘要:java.lang.ClassCastException: oracle.sql.CLOBhttp://spring3000.javaeye.com/blog/372482 Java代码oracle.sql.CLOBclob=null;stmt=conn.createStatement();rs=stmt.executeQuery(sql);if(rs.next()){System.out.pri... 阅读全文
posted @ 2010-03-01 15:21 hellofei 阅读(2108) 评论(0) 推荐(0)