2011-02-18 150 views

回答

4

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

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