Mysql miscellaneous
- Which variable when set to 1 would enable foreign key checking for InnoDB tables?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Setting the variable ‘foreign_key_checks’ to 0 or 1 disables or enables the foreign key checking for InnoDB tables. The default is to perform checking. Disabling key checks can also be helpful.
- The synonym for last_insert_id session variable is _____________.
-
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()’.
- 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()’.
- 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’.
- 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.