Statement 대신 PreparedStatement를 사용한다


PreparedStatement stmt = conn.prepareStatement("SELECT count(*)

FROM member

WHERE userid=? AND password=?");


stmt.setString(1, userid);

stmt.setString(2, password);


ResultSet rs = stmt.executeQuery();


Posted by Hello_World_2016
,


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24