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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -