In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the solution to the problem of mysql insertion timestamp, hoping to supplement and update some knowledge for you. If you have any other questions you need to know, you can continue to follow my updated article in industry information.
Timestamp (6) is set in the data table, and then the timestamp cannot be generated from the database for various reasons, but is generated according to the function written by yourself, and then the following error occurs occasionally:
Incorrect datetime value: '2017-11-28 16 MYTIMESTAMP' at row 0415 05.1e3000' for column' MYTIMESTAMP' at row 1
The millisecond count is followed by a scientific count, and this is the only example that has never happened before and after. I wonder, and then take a look at the method.
ROUND (ROUND (RAND (), 3) * 1000), because the first three digits after milliseconds are concatenated based on strings, indicating that 1e3 is generated directly from random numbers. I cheated, didn't I say that RAND () got [0J1], how did it get 1?
After reading the above solution to the problem of mysql timestamp insertion, I hope it can bring some help to everyone in practical application. Due to the limited space in this article, it is inevitable that there will be deficiencies and need to be supplemented. If you need more professional answers, you can contact us on the official website for 24-hour pre-sales and after-sales to help you answer questions at any time.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.