SQL 两个时间获取相差秒数

SELECT DATEDIFF(SECOND, '2005-12-31 23:59:00', '2006-01-01 00:00:00');

猜你喜欢

转载自www.cnblogs.com/SmileIven/p/9133686.html