1. Home
  2. Computer Science MCQs
  3. MySQL
  4. How much storage space does DATETIME require?

Added 19 Jan 2024

How much storage space does DATETIME require?

  1. 4 bytes
  2. 2 bytes
  3. 8 bytes Correct answer
  4. 1 bytes

Correct answer

C. 8 bytes

17 views

MCQSEXAM

Explanation

A DATETIME value requires 8 bytes in MySQL versions before 5.6.4, which is the answer this question expects.

From MySQL 5.6.4 onwards the storage was reduced to 5 bytes plus up to 3 bytes for fractional seconds. For comparison, TIMESTAMP takes 4 bytes and DATE takes 3.

For more solved questions like this one, see Database Management Systems MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs