12 2012 档案

摘要:/** * 移除字符串中包含HTML的标签 * * @param content * @return */ public static String removeHTML(String content) { int before = content.indexOf('<'); int behind = content.indexOf('>'); if (before != -1 || behind != -1) { behind += 1; content ... 阅读全文
posted @ 2012-12-13 11:17 Caliven 阅读(277) 评论(0) 推荐(0)
摘要:public static String oracleClob2Str(Clob clob) throws Exception { return (clob != null ? clob.getSubString(1, (int) clob.length()) : null);} 阅读全文
posted @ 2012-12-12 11:34 Caliven 阅读(254) 评论(0) 推荐(0)
摘要:select substr('测试',0, (length('测试')-1)) from dual; --结果 '测'select instr('测试100','100') from dual; --结果'3'(返回100在测试100中出现在那个位置)TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyyy four digits 四位年 显示值:2007 阅读全文
posted @ 2012-12-03 09:50 Caliven 阅读(172) 评论(0) 推荐(0)
摘要:Ubuntu12.10 64位系统安装以及配置java jdk环境变量wuyexiong@wuyexiong-Ubuntu:~$ uname -aLinux wuyexiong-Ubuntu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux用此命令查看系统的信息,如果是32位的则不会显示后面的_64 只会显示x860.1--下载 JAVA JDK下载地址: http://www.oracle.com/technetwork/java/javase/downloa 阅读全文
posted @ 2012-12-02 00:36 Caliven 阅读(585) 评论(0) 推荐(0)