How to update without changing the time when using Current_timestamp as the default value
Source: Internet
Author: User
How to update without changing the time when using Current_timestamp as the default value
There is a field datetime is a timestamp type, using Current_timestamp as the default value
When update does not modify this datetime field, the time becomes the current system time
Is there any way to make him stay the same?
------Solution--------------------
ALTER TABLE XXX Modify YYY timestamp defualt NULL
------Solution--------------------
This is because you choose the timestamp type phpMyAdmin automatic selection caused by, click Modify, there is a "properties" box, this time must be on the update current_timestamp this value, set to NULL
------Solution--------------------
Top Up
Explore
This is because you choose the timestamp type phpMyAdmin automatic selection caused by, click Modify, there is a "properties" box, this time must be on the update current_timestamp this value, set to NULL
------Solution--------------------
+1
Explore
This is because you choose the timestamp type phpMyAdmin automatic selection caused by, click Modify, there is a "properties" box, this time must be on the update current_timestamp this value, set to NULL
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.