Mysql miscellaneous


  1. Which variable when set to 1 would enable foreign key checking for InnoDB tables?











  1. 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.


  1. The synonym for last_insert_id session variable is _____________.











  1. 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()’.



  1. What is the synonym for last_insert_id session variable?











  1. 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()’.


  1. The Audit_log_events system variable is of type _____________.











  1. 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’.



  1. mysql_next_result() does not return a status.











  1. 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.