摘要: ID NUMBER1 137xxxx,138xxxx取出来成ID NUMBER1 137xxxx1 138xxxxcreatetabletest(idint,phonevarchar2(200));insertintotestvalues(1,'13811... 阅读全文
posted @ 2014-12-03 10:42 myJoan 阅读(2927) 评论(3) 推荐(0) 编辑
摘要: 优势:1.节省传递时间。2.并发处理。PreparedStatement:1)addBatch()将一组参数添加到PreparedStatement对象内部。2)executeBatch()将一批参数提交给数据库来执行,如果全部命令执行成功,则返回更新计数组成的数组。Statement:1)addB... 阅读全文
posted @ 2014-12-02 14:57 myJoan 阅读(1487) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 * @(#)CommonSql.java 2011-9-5 3 * 4 * Copyright 2011 Bianjing,All rights reserved. 5 */ 6 7 import java.sql.Connection; 8... 阅读全文
posted @ 2014-12-01 10:55 myJoan 阅读(402) 评论(0) 推荐(0) 编辑
摘要: package junit.test; import java.util.Date;import java.util.Locale; import org.junit.Test; public class StringFormat { /*String.format()用法 1、转换符%s: 字符串... 阅读全文
posted @ 2014-11-26 17:27 myJoan 阅读(6044) 评论(0) 推荐(1) 编辑
摘要: package com.happigo.test;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;/* * MD5 算法*/public class MD5 { // 全局... 阅读全文
posted @ 2014-11-21 09:56 myJoan 阅读(176) 评论(0) 推荐(0) 编辑
摘要: package com.ice.webos.util.security;import java.io.UnsupportedEncodingException;import java.math.BigInteger;import java.security.Key;import java.secur... 阅读全文
posted @ 2014-11-20 17:11 myJoan 阅读(607) 评论(0) 推荐(0) 编辑
摘要: import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStr... 阅读全文
posted @ 2014-11-14 11:12 myJoan 阅读(280) 评论(0) 推荐(0) 编辑