1.

The bit-field values are prefixed with __________(a) 0b(b) 0bit(c) bit-(d) ‘bit’I had been asked this question in unit test.The query is from Data Value Categories in portion Data Types of MySQL

Answer»

The CORRECT OPTION is (a) 0b

The best explanation: In MySQL, the bit-field values can be EITHER WRITTEN as b’VALUE’ or 0bvalue. Here, value is a sequence of digits zero or/and one. For example, b’1010′ and 0b1010 are decimal value 10.



Discussion

No Comment Found

Related InterviewSolutions