Here is the message of mysql error 1293:
SQL Error (1293): Incorrect table definition; there can be only one
TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
what is the reason for mysql only allows one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause per table.
Only one TIMESTAMP field can default to “now”
I should say first of all, if you are trying to define more than one MySQL TIMESTAMP fields using CURRENT_TIMESTAMP or “default now”, unfortunately that is bad, you can’t do it in MySQL
I just got this MySQL TIMESTAMP error when trying to create a table like this:
When I first solved this problem I thought MySQL required the “CURRENT_TIMESTAMP (default now)” field to be declared before any other TIMESTAMP fields, so I solved my problem like this: