MySQL Database Operations
- Which of these is preferred when stored procedures are not being used?
CLIENT_MULTI_STATEMENTS, mysql_set_server_option()
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
If the program does not use stored procedures anyone is suitable. If the program uses stored procedures and invokes a ‘CALL’ statement that returns a result set, the first method is better.
- mysql_next_result() does not return.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The function ‘mysql_next_result()’ returns a status and initiates retrieval of the next set if more results are available. The status is zero if more results are available and -1 if not.
- The option that executes all SQL statements in a SQL script irrespective of the number of errors is ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
If SQL queries in a file are run using mysql in batch mode, mysql either quits after the first error. If the –force option is specified all the queries are executed indiscriminately.
- What is the statement used to select a default database?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
MySQL has the facility to use various statements specifically at the database level. For selecting a default database, the keyword or clause used is the ‘USE’ statement.
- Symlink is an applicable relocation method for ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Symlink is an applicable relocation method for the individual database tables. However, the startup option is better suited relocation method for server PID file and the log files.