MySQL Access Control and Security
- What does ‘abc’ || ‘xyz’, when PIPES_AS_CONCAT is enabled, result in?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
If the SQL mode PIPES_AS_CONCAT has been enabled, the SQL standard ‘||’ operation for string concatenation becomes valid in MySQL. Both operands are concatenated to give ‘abcxyz’.
- What does the expression ‘2 BETWEEN 2 AND 5’ result in?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The ‘BETWEEN ……. AND’ clause is used to return a boolean value, if the given operand value lies between the values specified by the ‘AND’ clause. The range endpoints are inclusive.
- REGEXP does not take collation into account.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
MySQL provides pattern matching based on the ‘REGEXP’ operator and regular expressions that are similar to those used in Unix programs, namely, grep, sed and vi. REGEXP does not take collation into account.
- The line that is not used to turn on the event scheduler is _________________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The line ‘event_scheduler = ON’ is put in the option file that the server reads. The event scheduler does not run by default. It must be turned on if events are to used in the database.
- The statement that is used to check the status of the event scheduler at runtime is _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
In MySQL, in order to check the status of the event scheduler at runtime, the statement: SHOW VARIABLES LIKE ‘event_scheduler’; is used. The event_scheduler is a system variable.