How do you set in MySQL the timestamp type column to be returned as integer by default?
To specify:
I know that I can query
select UNIX_TIMESTAMP(timestamp_column) from table ...,
but when I query
select * from table ...
How can I force timestamp_column
to be returned as int
, and not as YYYY-MM-DD HH:ii:ss
, in every query like the previous one?
Is there a query like set names utf8
that I can execute to make the described behaviour default?