mysql中把字符串转成时间戳进行对比

SELECT UNIX_TIMESTAMP("2016-07-17 23:59:59")

 

 

select id from table where 1 and  atTime>UNIX_TIMESTAMP("2018-04-10");

 

posted @ 2018-04-16 10:40  与f  阅读(1217)  评论(0)    收藏  举报