How to Insert custom date into mysql timestamp field?
The problem is that your field is defined as TIMESTAMP
but UNIX_TIMESTAMP
returns an int. Use INSERT INTO test VALUES ('2013-08-05 18:19:03' )
instead.
The problem is that your field is defined as TIMESTAMP
but UNIX_TIMESTAMP
returns an int. Use INSERT INTO test VALUES ('2013-08-05 18:19:03' )
instead.