TIP/JSP
2018. 9. 26.
JDBC 관련
Statement실제 DB에 쿼리를 보내기 위한 객체 ResultSetSatatement, PreparedStatement 객체로 select문을 사용해 얻어온 레코드 값들을 테이블 형태로 갖게 되는 객체 public List selectAll() throws SQLException {List list = new ArrayList(); Statement stmt = null;ResultSet rs = null; try {stmt = conn.createStatement();rs = stmt.executeQuery(sql); // 레코드가 존재하지 않을 때까지 계속 레코드 행을 다음으로 이동하며 레코드 값 가져옴while (rs.next()) {String id = rs.getString(1);String..