Mysql Setup
- The following statement is valid.
SELECT name, id FROM Employee UNION name, salary FROM Person;
-
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.
- Increasing the value of which system variable enables mysqld to keep more tables open simultaneously?
-
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.
- The largest value to which the variable ‘max_allowed_packet’ can be set is ______________.
-
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.
- Which system variable determines the number of rows from INSERT DELAYED statements that can be queued per table?
-
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).
- Which mode exists at both global level and session-specific level?
-
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.