1.

A BIT value in a result set is displayed as a binary string.(a) True(b) FalseThis question was posed to me in an interview.This intriguing question comes from Data Value Categories in section Data Types of MySQL

Answer»

Correct ANSWER is (a) True

For explanation I would say: In MySQL, the BIT values in the result set are DISPLAYED as binary STRINGS. In order to CONVERT them to integers, either a zero is added or the ‘CAST()’ operator is USED to cast them.



Discussion

No Comment Found

Related InterviewSolutions