Data Types
- Which mode is used to turn off the special meaning of backslash and treat it as an ordinary character?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
To turn off the special meaning of backslash in MySQL, and treat it as an ordinary character, the SQL mode named NO_BACKSLASH_ESCAPES is enabled. The escape sequence is treated as characters.
- x’ffff’ in decimal is ___________
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
In MySQL, string values are specified using the standard SQL notation x’val’. Here, val is pairs of hexadecimal digits ( ‘0’ through ‘ 9 ’ and ‘ a ’ through ‘ f ’). x’ffff’ is 65536 in decimal.
- X’61626364′ and X’61626364′ are respectively __________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In the numeric contexts, each hexadecimal number constant is treated as a number. Without adding a zero to it, a hexadecimal literal is treated as a string. Hence it is displayed as abcd.
- AUTO_INCREMENT columns must be NOT NULL.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The ‘AUTO_INCREMENT’ columns must be NOT NULL. If the NOT NULL is omitted, MySQL adds it automatically. AUTO_INCREMENT column values begin with 1 and increase monotonically after it.
- Which of these values is not valid as an AUTO_INCREMENT value?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
In MySQL, the ‘AUTO_INCREMENT’ values are a sequence of unique values assigned to the columns such that they increase monotonically. They begin with the value 1 and increment by a unit.