I have a column mysql datetime that is in DATETIME format.
datetime
Is there a way to SELECT this column in epoch seconds? If not, what would be th
SELECT
Use MySQL's UNIX_TIMESTAMP function
You can use :
SELECT UNIX_TIMESTAMP(yourfield) FROM yourtable;
And for UPDATE, the invers function is : FROM_UNIXTIME(...)