SQL keywords

Report a typo

What happens if we execute the following code:

String delete = "DELETE ? customers WHERE id = ?";

try (PreparedStatement preparedStatement = con.prepareStatement(delete)) {
    preparedStatement.setObject(1, "FROM");
    preparedStatement.setObject(2, "42");

    preparedStatement.executeUpdate();
}
Select one option from the list
___

Create a free account to access the full topic