Skip to content

9. Prevent SQL Injection

Wie verhindert man SQL Injection

Serverseitige Prepared-Statement

PreparedStatement statement = connection.prepareStatement("SELECT * FROM products WHERE category = ?"); statement.setString(1, input); ResultSet resultSet = statement.executeQuery();