/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.util;
import java.io.UnsupportedEncodingException;
import java.sql.*;
/**
*
* @author swing
*/
public class DbUtility {
private Connection conn = null;
private ResultSet set = null;
private Statement st = null;
// 数据库连接使用的参数;
private String DBUrl = "jdbc:mysql://localhost/acctest?useUnicode=true&characterEncoding=gbk";
//这里使用编码就可以解决mysql中文问题,其他得不需要设置