摘要:
//Utils 1 import com.mchange.v2.c3p0.ComboPooledDataSource; 2 import javax.sql.DataSource; 3 import java.sql.Connection; 4 import java.sql.ResultSet; 阅读全文
摘要:
//Utils 1 public class JdbcUtils_DBCP { 2 private static DataSource dataSource = null; 3 static { 4 try{ 5 InputStream in = JdbcUtils.class.getClassLo 阅读全文
摘要:
//工具类和属性池和 Statment文章的一致 // 测试类 1 public class TestInsert { 2 public static void main(String[] args) { 3 Connection conn = null; 4 PreparedStatement s 阅读全文
摘要:
//测试类 插入 删除 更新 基本一致 1 public class TestInsert { 2 public static void main(String[] args) { 3 Connection conn = null; 4 Statement st =null; 5 ResultSet 阅读全文
摘要:
public class jdbcFirstDemo { public static void main(String[] args) throws ClassNotFoundException, SQLException { //1.用户身份和url String url="jdbc:mysql: 阅读全文