前言
Mysql中時間戳和時間的轉化
時間轉時間戳
select unix_timestamp('2019-7-29 14:23:25');
時間戳轉時間
select from_unixtime(1564381405);
格式化
SELECT from_unixtime(1564381405, '%Y-%m-%d %H:%i:%S');
Mysql中時間戳和時間的轉化
select unix_timestamp('2019-7-29 14:23:25');
select from_unixtime(1564381405);
格式化
SELECT from_unixtime(1564381405, '%Y-%m-%d %H:%i:%S');
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。