mysql 日期、时间操作
mysql 日期、时间操作笔记
--时间转字符串
select date_format(now(), '%Y-%m-%d %H:%i:%s');
--时间转时间戳
select unix_timestamp(now());
--字符串转时间
select str_to_date('2016-01-02', '%Y-%m-%d %H');
--字符串转时间戳
select unix_timest...
原创
2019-12-26 15:31:23 ·
120 阅读 ·
0 评论