摘要:
//Utils 1 import com.mchange.v2.c3p0.ComboPooledDataSource; 2 import javax.sql.DataSource; 3 import java.sql.Connection; 4 import java.sql.ResultSet; 阅读全文
posted @ 2022-10-14 17:25
西东怪
阅读(34)
评论(0)
推荐(0)
摘要:
//Utils 1 public class JdbcUtils_DBCP { 2 private static DataSource dataSource = null; 3 static { 4 try{ 5 InputStream in = JdbcUtils.class.getClassLo 阅读全文
posted @ 2022-10-14 17:22
西东怪
阅读(50)
评论(0)
推荐(0)
摘要:
//工具类和属性池和 Statment文章的一致 // 测试类 1 public class TestInsert { 2 public static void main(String[] args) { 3 Connection conn = null; 4 PreparedStatement s 阅读全文
posted @ 2022-10-14 17:17
西东怪
阅读(29)
评论(0)
推荐(0)
摘要:
//测试类 插入 删除 更新 基本一致 1 public class TestInsert { 2 public static void main(String[] args) { 3 Connection conn = null; 4 Statement st =null; 5 ResultSet 阅读全文
posted @ 2022-10-14 17:02
西东怪
阅读(25)
评论(0)
推荐(0)
摘要:
public class jdbcFirstDemo { public static void main(String[] args) throws ClassNotFoundException, SQLException { //1.用户身份和url String url="jdbc:mysql: 阅读全文
posted @ 2022-10-14 16:13
西东怪
阅读(31)
评论(0)
推荐(0)

浙公网安备 33010602011771号