Why should SQL queries use parameter placeholders instead of string formatting in Python?
Correct answer
B. To prevent SQL injection
5 views
B. To prevent SQL injection
5 views
Parameterised queries separate code from data.
Asked in: Python Interview Data Libraries
https://docs.python.org/3/library/index.htmlNot sure why the answer is B? Ask here and get an explanation.