Connection con = DriverManager.getConnection(~~) Statement st = con.createStatement(); st.executeUpdate(SQL1); st.executeUpdate(SQL2);
이런 식으로 하나의 Statement객체에 2개 이상의 쿼리를 실행시키면 안됨. Statement를 2개 만들어서 따로 실행시켜줘야한다.