Home »
MCQs »
SQL MCQs »
SQL Injection MCQs
Select the correct statement which will return all the rows from the Table and then also deletes the Table_Add table?
5. Select the correct statement which will return all the rows from the Table and then also deletes the Table_Add table?
- SELECT * FROM Table; DROP TABLE Table_Add
- SELECT * WHERE Table; DROP TABLE Table_Add
- SELECT * FROM Table; DELETE TABLE Table_Add
- SELECT * WHERE Table; DELETE TABLE Table_Add
Answer: A) SELECT * FROM Table; DROP TABLE Table_Add
Explanation:
The correct statement which will return all the rows from the Table and then also deletes the Table_Add table is – SELECT * FROM Table; DROP TABLE Table_Add.