SELECT NOW(6) AS '当前时间精确到微秒'; SELECT UNIX_TIMESTAMP() AS '当前时间戳',UNIX_TIMESTAMP('2018-1-1') AS '转换成时间戳',FROM_UNIXTIME(1523439700) AS '时间戳转datetime',date_format(NOW(),'%Y/%m/%d %H:%i:%s') AS '时间格式化'; select timestampdiff(second,'2018-4-11 00:00:00','2…