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
Post a Comment