mysql - Date difference in SQL -


how can number of second between now() , date in database.

thanks.

use timestampdiff function. (the timediff function has upper limit of 838:59:59)

select timestampdiff(second, datecolumn, now()) seconds table 

Comments

Popular posts from this blog

c# - IMAP GMAIL getting folder list problem -

CUDA shared memory -