-
To execute the contents of a query file ‘exec.sql’ by feeding it to mysql, which command is used?
-
- mysql exec.sql
- mysql exec
- mysql exec.sql > sampdb
- mysql sampdb < exec.sql
- None of these
Correct Option: D
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.