關於jdbc 增刪改通用的方法,只須要傳sql語句和查詢條件

//第二個參數爲給佔位符賦值,能夠理解爲一個數組sql //例如executeUpdate("select *from user where id=? and pwd =?","admin","123")數組 public int executeUpdate(String sql,Object...obj){spa Connection conn = getConnection(); Prepar
相關文章
相關標籤/搜索