This content is transferred from a Sina blog article later I will optimize the content Http://blog.sina.com.cn/s/blog_6d39dc6f0100m7eo.html In addition to the now () function to get the current datetime, MySQL has the following function:
How do I represent the current time in MySQL?In fact, the expression is still quite a lot of, summarized as follows:Current_timestampCurrent_timestamp ()Now ()LocalTimeLocalTime ()LocaltimestampLocaltimestamp ()Ii. Comparison of Timestamp and
Introduction to timestamp basic knowledge
Variant of the timestamp1,timestamp DEFAULT current_timestamp on UPDATE current_timestamp refreshes this data column when new records are created and existing records are modified
2,timestamp default
This article mainly introduces the comparison of Datetime and Timestamp in Mysql. This article summarizes their similarities and differences and the introduction of time formats, for more information, see the three types of date, datetime, and
The difference between DATETIME, DATE, and TIMESTAMP in mysql is that the DATETIME, DATE, and TIMESTAMP types are similar. This article describes their characteristics and their similarities and differences. The DATETIME type can be used for values
MySQL date type DATETIME and TIMESTAMPThere are three types of dates in MySQL5: DATETIME, DATE, and TIMESTAMP, except that DATE is used to indicate a DATE without time and second, and the other two have time and second. TIMESTAMP can also be
Comparison between Datetime and Timestamp in Mysql, datetimetimestamp
In mysql, the three types of date, datetime, and timestamp (if int is used, four types) are easy to confuse. The following compares the similarities and differences between the
Comparison between Datetime and Timestamp in Mysql, datetimetimestamp
In mysql, the three types of date, datetime, and timestamp (if int is used, four types) are easy to confuse. The following compares the similarities and differences between the
MySQL date types: DATETIME, TIMESTAMP, and datetimetimestampThere are three types of dates in MySQL5: DATETIME, DATE, and TIMESTAMP, except that DATE is used to indicate a DATE without time and second, and the other two have time and second.
MySQL date type DATETIME and TIMESTAMPThere are three types of dates in MySQL5: DATETIME, DATE, and TIMESTAMP, except that DATE is used to indicate a DATE without time and second, and the other two have time and second. TIMESTAMP can also be
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.