In SQL, how can you prevent SQL injection in your queries?
- Use stored procedures
- Encrypt the database
- Use Object-Relational Mapping (ORM)
- Sanitize and parameterize inputs
To prevent SQL injection, you should sanitize and parameterize user inputs in your queries. This involves validating and escaping user input data to ensure that it cannot be used to execute malicious SQL commands. Other options, while important, do not directly prevent SQL injection.
Loading...
Related Quiz
- Which ETL tool provides native integrations with Apache Hadoop, Apache Spark, and other big data technologies?
- Which metric is especially useful when the classes in a dataset are imbalanced?
- Which technique considers the spread of data points around the median to identify outliers?
- Apache Spark's core data structure, used for distributed data processing, is called what?
- Real-time data processing is also commonly referred to as ________ processing.