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.
- The escape sequence for carriage return is ___________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
MySQL provides the facility to use a wide range of escape sequences. They are special characters. They begin with the backslash character. For example, ‘\r’ specifies carriage return.
- The NUL (‘\0’) is same as the SQL NULL value.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
MySQL recognizes many escape sequences like other programming languages. An escape sequence begin with a backslash character. The ‘\0’ is different from NULL. It is a zero valued byte.
- If ANSI_QUOTES is enabled, MySQL treats the double quotes as ________________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The SQL standard specifies the single quotes so that statements are portable across database engines. If ANSI_QUOTES is enabled, MySQL treats the double quotes as identifier-quoting character.
- ‘2341’ is a ____________
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
In MySQL, the string values are written by enclosing them within quotes. Values like ‘Alexander’, ‘Kolkata, India’ and ‘2341’ are strings. ‘2341’ looks like an integer but is a string.