2011-02-18 154 views

回答

4

使用TIMESTAMPDIFF功能。 (TIMEDIFF函數的上限爲838:59:59

SELECT TIMESTAMPDIFF(SECOND, DateColumn, NOW()) As Seconds 
FROM table