mysql秒数时间差

UNIX_TIMESTAMP(datetime1) - UNIX_TIMESTAMP(datetime2)

原文地址:https://www.cnblogs.com/cdcr/p/9765880.html