您好,欢迎访问一九零五行业门户网

如何借助 MySQL FROM_UNIXTIME() 函数了解 TIMESTAMP 数据类型的起始范围?

众所周知,该函数将秒数转换为 timestamp 值。因此,通过提供 0 秒作为参数,它将为我们提供 timestamp 数据类型的起始范围。
mysql> select from_unixtime(0);+-------------------------+| from_unixtime(0) |+-------------------------+| 1970-01-01 05:30:00 |+-------------------------+1 row in set (0.00 sec)
现在,如果我们将参数从 0 更改为 60 秒,那么时间将更改 01 分钟。
mysql> select from_unixtime(60);+-------------------------+| from_unixtime(60) |+-------------------------+| 1970-01-01 05:31:00 |+-------------------------+1 row in set (0.00 sec)
以上就是如何借助 mysql from_unixtime() 函数了解 timestamp 数据类型的起始范围?的详细内容。
其它类似信息

推荐信息