conn = this.getConnection(); 97 stmt = conn.createStatement(); 98 stmt.executeUpdate(sql); 99 } catch (SQLException e) { 100 e.printStackTrace(); 101 } 102 } 103 104 public static void main(String args[]) { 105 newJdbc nj = new newJdbc(); 106 String sql = "select * from users"; 107 List list = nj.query(sql); 108 //返回list的迭代器 109 Iterator it = list.iterator(); 110 &nbs上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页
|