MySQL——时间戳和时间的转化

前言

Mysql中时间戳和时间的转化

时间转时间戳

select unix_timestamp('2019-7-29 14:23:25');

时间戳转时间

select from_unixtime(1564381405);

格式化

SELECT from_unixtime(1564381405, '%Y-%m-%d %H:%i:%S');
原文地址:https://www.cnblogs.com/wangyang0210/p/11263647.html