1

来源:互联网 发布:网络怎么赚钱现实点的 编辑:程序博客网 时间:2024/06/03 20:18

public class BaseDAO {     public Connection getCon() throws SQLException{      return DBHelper.getCon();     }     public void realse(Connection con) throws SQLException{     DBHelper.realse(con);     }public int execute(String sql) throws SQLException{Connection con = getCon();PreparedStatement stmt = getCon().prepareStatement(sql);stmt.executeUpdate();String res  = stmt.getString(1);realse(con);return res;}}


0 0
原创粉丝点击