/ Published in: SQL
This will return the number of seconds between now and when the time field was inserted.
Expand |
Embed | Plain Text
SELECT unix_timestamp(current_timestamp) - unix_timestamp(time_field) AS timediff FROM table_name;
You need to login to post a comment.
