Mysql miscellaneous


  1. The option that executes all SQL statements in a SQL script irrespective of the number of errors is ____________.











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


  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.