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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -