Home » MYSQL » Interacting With MySQL » Question
  1. To execute the contents of a query file ‘exec.sql’ by feeding it to mysql, which command is used?
    1. mysql exec.sql
    2. mysql exec
    3. mysql exec.sql > sampdb
    4. mysql sampdb < exec.sql
    5. 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.



Your comments will be displayed only after manual approval.