Mysql miscellaneous


  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.


  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. 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. Which keyword inserted in the SHOW STATUS statement shows the values for the current connection?











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



  1. When building from source, the embedded server library is enabled by what?











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