SELECT A,B,C,D FROM ATABLE
WHERE A=? AND B=? AND C=?
-------------------------------
이런 문장을 사용할때 파라미터의 정의가...
모두 ?이면 ?를 각각 어떻게 구분하는가요..
sample 에 예제가 나와요. PreparedStatement stmt1 = con.prepareStatement( "SELECT ID " + "FROM FINAL TABLE (INSERT INTO company_b " + "VALUES(default, ?, ?, ?, ?, ?, ?, ?))");
stmt1.setString(1, name); stmt1.setInt(2, department); stmt1.setString(3, job); stmt1.setInt(4, years); stmt1.setDouble(5, salary); stmt1.setString(6, benefits); stmt1.setInt(7, id);