Mysql miscellaneous
- mysql_next_result() does not return a status.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
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 Audit_log_events system variable is of type _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The system variable ‘Audit_log_events’ is of type integer. The variable scope if GLOBAL, that is, it can be viewed by issuing the statement ‘SHOW GLOBAL STATUS’, instead of ‘SESSION’.
- What is the synonym for last_insert_id session variable?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The session only system variable ‘identity’ is a synonym for the ‘last_insert_id’ session variable. Setting ‘last_insert_id’ specifies the value to be returned by the function ‘LAST_INSERT_ID()’.
- Which keyword inserted in the SHOW STATUS statement shows the values for the current connection?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The optional ‘GLOBAL’ keyword in the statement SHOW [GLOBAL | SESSION] STATUS statement aggregates the values over all connections and ‘SESSION’ shows the values for the current connection.
- When building from source, the embedded server library is enabled by what?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
While building from the source, the embedded server library is enabled by using the option ‘–with-embedded-server’ while running ‘configure’. This applies equally to MySQL 5.0 and 5.1.