In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "what is the common function of MySQL", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what is the common function of MySQL" this article.
Common functions of MySQL I. numeric functions
Additional: ceil (x) such as ceil (1.23) can be written as ceiling (x) if the value is 2.
Second, string function
Underlining is commonly used (number of bytes)
Additional: char_length character (query name followed by three digits) such as: char_length (name) = 3 can be written as:
Select left (name,1) from C1; III. Time function
Usage: select now ()
IV. System function
To add a delimiter:
Select concat_ws ('#', name,tel,height) from xxb;select (substr (Now (), 1mai 4)-substr (age,1,4) as Age from zxc
The following SQL statement states: the first now () is used for comparison. Interval 50 minute means to push back 50 units.-50 means to push forward 50 units year (now ()) to take the year; month (now ()) to take the month; day (now ()) to take the day; nour (now ()) to take the time; minute (now ()) to take points; second (now ()) to take seconds.
Select now (), date_add (now (), interval 50 minute)
Get week:
Select dayofweek (now ()), dayname (now ()); 5. Aggregate function
Collect multiple data to calculate a single data value.
Usage:
Select sum (heigth) from C1
Take the number of records (the number of rows), filter the null value: count () if 14 lines have a blank line, then count () is 13 lines count () can take count (*) this is more accurate, generally use count (*) to count
Calculate the difference between two dates by multiple units such as: select timestampdiff (time unit, date time 1, date time 2) is written as follows:
Select timestampdiff (day,'2021-11-18)
Thanks to everyone who reads my article carefully! If the following information is available, you can just take it away:
1. Complete project source code and environment necessary for self-study development or testing
2. All templates in the testing work (test plans, test cases, test reports, etc.)
3. Classic interview questions for software testing
4. Python/Java automated testing practice. Pdf
5. Jmeter/postman API testing a full set of video acquisition
These are all the contents of the article "what are the common functions of MySQL?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.