Data Types


  1. To maintain performance of tables having variable length rows, which statement is used?











  1. 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.


  1. To convert a string to an int, the function is _________________.











  1. 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.



  1. If ANSI_QUOTES is enabled, MySQL treats the double quotes as ________________.











  1. 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.


  1. The NUL (‘\0’) is same as the SQL NULL value.











  1. 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.



  1. The escape sequence for carriage return is ___________.











  1. 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.