adplus-dvertising
frame-decoration

Question

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

Posted under MySQL Database

Answer: (b).mysql sampdb < exec.sql

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To execute the contents of a query file ‘exec.sql’ by feeding it to mysql, which command is used?

Similar Questions

Discover Related MCQs

Q. Which option prints output in table-format when MySQL is run interactively?

Q. The clause that enables mapping a short command to a long command is __________

Q. The connection parameters for setting up MySQL can be stored in an option file to save typing the names every time a connection is established.

Q. In UNIX, the name of the option file is __________

Q. Which statement upgrades the database directory name encoding?

Q. The statement that alters an existing event to have the given definition is _____________

Q. What sets up an association between one or more MyISAM tables and the named key cache?

Q. Which statement can produce the same output as ‘SHOW COLUMNS’?

Q. Converting a client/server application to embedded server is difficult.

Q. The option that executes all SQL statements in a SQL script irrespective of the number of errors is _______________

Q. The clause that is used to display information that matches a given pattern is _____________

Q. The header that should be included first is ________________

Q. What does mysql_init() return?

Q. The statement that constructs a branching flow-control construct is _____________

Q. Which statement terminates the execution of a function?

Q. Association between one or more MyISAM tables and the named key cache is set by _____________

Q. Which statement exits a labeled flow-control construct?

Q. What is the exec_stmt_ssl written in?

Q. What does ‘mysql_query()’ return on failure?

Q. When linking to a static MySQL C client library, the client library and the client application can use different compiler options.