mysql中有关时间的类型

date/datetime/time/timestamp/year

date:表示日期的类型,格式为:“yyyy-MM-dd”

dateTime:表示日期时间的类型,格式为:“yyyy-MM-dd HH:mm:ss”

time:表示时间的类型,格式为:“HH:mm:ss”

timestamp:表示日期时间的类型,格式同dateTime,与dateTime的区别是:1、表示的时间范围不同,2、timestamp会自动更新

year:表示年份的类型,格式是:“yyyy”

mysql中的日期函数

------要回家了,有空再写--------

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-04-29
  • 2021-12-12
  • 2021-08-02
  • 2022-02-14
  • 2022-12-23
猜你喜欢
  • 2021-10-01
  • 2021-12-09
  • 2021-07-03
  • 2021-12-03
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案