Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Spring 3.1.2 を使用していますが、PreparedStatementSetter を選択、更新、および挿入に使用していますが、削除クエリにはどのように使用できますか?
PreparedStatementこのような削除に使用できます
PreparedStatement
String sql = "DELETE FROM MY_TABLE WHERE ID = ?"; PreparedStatement ps = yourDBConnection.prepareStatement(sql); ps.setInt(1, 1001); // execute delete SQL stetement ps.executeUpdate();