Mysql Setup


  1. The following statement is valid.
    SELECT name, id FROM Employee UNION name, salary FROM Person;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Even if the columns ‘xyz’ and ‘def’ have different data types, the results from these columns are placed into the column ‘xyz’. The data types can be determined from the values in the columns.


  1. Increasing the value of which system variable enables mysqld to keep more tables open simultaneously?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The ‘table_cache’ stores the size of the table cache. Increasing the value enables ‘mysqld’ to keep more tables open simultaneously by reducing the number of file open and close operations.



  1. The largest value to which the variable ‘max_allowed_packet’ can be set is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The ‘max_allowed_packet’ stores the maximum size to which the buffer used for client communications can grow. The largest value to which ‘max_allowed_packet’ variable can be set is 1GB.


  1. Which system variable determines the number of rows from INSERT DELAYED statements that can be queued per table?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The system variable ‘delayed_queue_size’ determines the number of rows from INSERT DELAYED statements that can be queued per table (for the storage engines that support DELAYED inserts).



  1. Which mode exists at both global level and session-specific level?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The system variable ‘sql_mode’ that indicates the default SQL mode is an example of a variable that exists at both the global and session levels. This mode affects several aspects of SQL statement processing.