Which of the following is a common practice to prevent SQL injection?

  • Disabling error reporting
  • Parameterized queries
  • Storing sensitive data in plain text
  • Using weak passwords
A common practice to prevent SQL injection is to use parameterized queries, which ensure that user input is treated as data and not executable code. This helps to mitigate the risk of malicious SQL injection.
Add your answer
Loading...

Leave a comment

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