How do parameterized queries help in preventing SQL injection?

  • They concatenate user inputs directly into SQL statements
  • They encrypt the entire SQL query
  • They store user inputs in cookies for security
  • They use placeholders for user inputs, ensuring proper escaping
Parameterized queries help prevent SQL injection by using placeholders for user inputs, which are later replaced with sanitized values. This ensures that user inputs do not directly influence the structure of the SQL query, preventing injection attacks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *