Answers for "MySQL datetime difference in seconds"

SQL
1

mysql get date difference in hours

SELECT TIMESTAMPDIFF(HOUR, '2021-05-22 07:00:00', '2021-05-22 12:00:37') as time_diff_in_hours;
Posted by: Guest on September-30-2021
0

mysql date diff in seconds

SELECT TIME_TO_SEC(TIMEDIFF('2021-05-22 12:00:00', '2021-05-22 12:00:37')) as diff_in_seconds;
Posted by: Guest on September-30-2021

Code answers related to "MySQL datetime difference in seconds"

Code answers related to "SQL"

Browse Popular Code Answers by Language