How do you spend 4 hours in a field that is in Time Epoch 1475638722
?
I tried with DATE_SUB(field,INTERVAL 4 HOUR)
but I did not get it.
How do you spend 4 hours in a field that is in Time Epoch 1475638722
?
I tried with DATE_SUB(field,INTERVAL 4 HOUR)
but I did not get it.
You could use from-unixtime to then apply the DATE_SUB()
SELECT DATE_SUB(FROM_UNIXTIME(field),INTERVAL 4 HOUR ) from nameTable;
Response to Comment
SELECT UNIX_TIMESTAMP(DATE_SUB(FROM_UNIXTIME(field),INTERVAL 4 HOUR )) from mytable