To execute the contents of a query file ‘exec.sql’ by feeding it to mysql, which command is used?
A. mysql exec.sql > sampdb
B. mysql sampdb < exec.sql
C. mysql exec.sql
D. mysql exec
Answer: b
Explanation: mysql queries can be run after placing the queries in a file, and then executing it by feeding it to mysql. By default, mysql prints output in a tab-delimited format when it is running in noninteractive mode.