SQL injection is prevented by:
-
A
Using dynamic SQL
-
B
Parameterized queries
Correct answer
-
C
Ignoring input
-
D
Using views
Correct answer
B. Parameterized queries
11 views
Explanation
Parameterized queries (prepared statements) prevent SQL injection. Source: General DBMS knowledge.
Reference
Asked in: FPSC,CSS,NTS,PPSC,PMS
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ