Q. To execute the contents of a query file 'exec.sql' by feeding it to mysql, which command is used?
β
Correct Answer: (B)
mysql sampdb < exec.sql
Explanation: This question is about how to run a SQL query file in MySQL. Think of it like giving your computer a list of instructions to follow. The file 'exec.sql' contains these instructions.