摘要: package demo02; import javax.sql.DataSource; import org.apache.commons.dbcp.BasicDataSource; public class DBUtils { public static final String DRIVER = "com.mysql.jdbc.Driver"; public stat... 阅读全文
posted @ 2018-07-12 16:15 淅沥沥丶下雨 阅读(100) 评论(0) 推荐(0) 编辑
摘要: public static void insert() throws SQLException{ QueryRunner qr =new QueryRunner(); String sql ="insert into sort values(?,?,?)"; Object[] obj ={9,"橡皮擦","好吃又大补"}; ... 阅读全文
posted @ 2018-07-12 16:14 淅沥沥丶下雨 阅读(4547) 评论(0) 推荐(1) 编辑