PreparedStatement1 [Java] Statement 유형 1. Statement String strSql = “select * from tb_test”; Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(strSql);…2. PreparedStatement String strSql = “select * from tb_test where ? = ?”; PreparedStatement pstmt = con.prepareStatement(strSql); pstmt.setString(1, “id”); pstmt.setString(2, “ksprg”); ResultSet rs = pstmt.executeQuery();…3. CallableStatement 저장프로시저 호출 시 사용… Str.. 2013. 11. 15. 이전 1 다음