mysql 将时间转换成时间戳

select  UNIX_TIMESTAMP(addtime/*date_column*/) from tablename
输出:1548658912
数据库原格式:2019-01-28 15:01:20

 

posted @ 2019-01-30 15:17  杨不凡  阅读(1284)  评论(0编辑  收藏  举报