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. x’ffff’ in decimal is ___________











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



  1. X’61626364′ and X’61626364′ are respectively __________.











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


  1. AUTO_INCREMENT columns must be NOT NULL.











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



  1. Which of these values is not valid as an AUTO_INCREMENT value?











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