SELECT DATEDIFF(now() , created_at)*24 AS hours_passed FROM table_name;
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 · By Tahir Yasin
Related posts
Engineering
Disable Browser's Back button
Learn why you can’t truly disable the browser Back button using JavaScript and how to properly manage app state using the History API, popstate, and bfcache instead.
Engineering
Lamudi.pk Real Estate Growth
There are several online real estate portals running in Pakistan, a couple of them have captured the market and leading the industry. In such a scenario it’s ha
Engineering
My 3 Days Trip to Swat, Malam Jabba and Kalam
Pakistan is a land of natural beauty and has been blessed with the abundance of awe-inspiring outdoor areas. From the unspoiled golden beaches,across the desola