menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Databases

>

Navigating...
source image

Hackernoon

2w

read

152

img
dot

Image Credit: Hackernoon

Navigating MySQL data types: date and time

  • MySQL provides various data types for storing time data, including DATETIME and TIMESTAMP.
  • The DATETIME data type stores date and time in the format YYYY-MM-DD HH:MM:SS and does not store or convert time zone data.
  • The TIMESTAMP data type is internally represented as a Unix epoch and automatically adapts to the time zone of the server.
  • There are some unexpected features to be aware of, such as using NULL to initialize TIMESTAMP columns and dealing with zero dates.

Read Full Article

like

9 Likes

For uninterrupted reading, download the app