Data Types


  1. Which mode is used to turn off the special meaning of backslash and treat it as an ordinary character?











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


  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.



  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. 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. ‘2341’ is a ____________











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