In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the method of transforming mysql str into date, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
In mysql, you can use the "STR_TO_DATE (str,format)" function to convert the time-formatted string str to a value of type DATETIME in the provided display format.
The STR_TO_DATE (str,format) function converts a time-formatted string (str) to a value of type DATETIME according to the provided display format (format). The DATE_FORMAT (date,format) function converts the date of the database into the corresponding string format, which is more common and does not explain.
SELECT STR_TO_DATE ('2017-01-06 10 20 30 minutes% Ymuri% MMI% d% HV V% iRO% s') AS result
SELECT STR_TO_DATE ('2017-01-06 10 20 30 minutes% Ymuri% MMI% d') AS result2
Thank you for reading this article carefully. I hope it will be helpful for everyone to share the methods and contents of mysql str conversion date. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.