Data Types
- To maintain performance of tables having variable length rows, which statement is used?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In the variable length rows, there is more fragmentation of the table on which many deletes or updates are performed. OPTIMIZE TABLE is run periodically to maintain performance.
- To convert a string to an int, the function is _________________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
In MySQL, the function used to convert a string to an integer is INET_ATON(). On the other hand, the function INET_NTOA() converts a string to the corresponding integer value.
- 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.
- 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.
- 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.