Scriptbaker
SCRIPTBAKERAI & Software Engineering
Engineering

MySQL calculate hours since row created

[code lang=”sql”] SELECT DATEDIFF(now() , created_at)*24 AS hours_passed FROM table_name; [/code]

· 5 min read

 SELECT DATEDIFF(now() , created_at)*24 AS hours_passed FROM table_name; 

S

Scriptbaker Editorial Team

The Scriptbaker editorial team comprises engineers, AI specialists, and digital strategists based in Dubai and Rawalpindi. We write about software development, artificial intelligence, and digital transformation to help organisations build better products. Learn more about us →