mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
273 B
Java
12 lines
273 B
Java
import java.sql.*;
|
|||
|
|||
class Dao {
|
|||
void querySafe(Connection conn, String sql) {
|
|||
PreparedStatement stmt = conn.prepareStatement(sql);
|
|||
stmt.setString(1, "value");
|
|||
ResultSet rs = stmt.executeQuery();
|
|||
rs.close();
|
|||
stmt.close();
|
|||
}
|
|||
}
|