Computer Science, asked by parmjeetkaurgng1138, 1 year ago

What is the difference between MySQL DATETIME and TIMESTAMP data type?

Answers

Answered by khushi769
0

hello mate!!

TIMESTAMP is four bytes vs eight bytes for DATETIME. Timestamps are also lighter on the database and indexed faster. The DATETIME type is used when you need values that contain both date and time information. MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD HH:MM:SS' format

Similar questions