当前位置:网站首页>MySQL winter vacation self-study 2022 12 (2)
MySQL winter vacation self-study 2022 12 (2)
2022-07-04 00:19:00 【Crane paper thousand】
-- The absolute value
select abs(-10);#10
select abs(10);#10
select abs(-1.1);#1.1
-- ceil Rounding up
select ceil(1.1);#2
select ceil(-1.1);#-1
-- floor Rounding down
select floor(1.1);#1
select floor(-1.1);#-2
-- Take the maximum value of the list
select greatest(1,2,3);
select greatest(1.1,2,3);
-- Take the minimum value of the list
select least(1,2,3);
select least(-1,2,3.0);
-- modulus
select mod(5,2);#1
select mod(-5,2);#-1
select mod(5,-2);#1
select mod(-5,-2);#-1
-- PI
select PI();
-- return x Of y Power
select pow(2,3);# 8
select pow(2.0,3.0);# 8
select pow (2,-1);#0.5
-- 0-1 The random number
select rand();
-- Return integer , rounding
select round(4.5);#5
select round(4.4);#4
select round(-4.5);#-5
select round(-4.4);#-4
select round(3.5415,3);# Keep three decimal places ,3.542
-- Cut the decimal directly to the specified number of digits
select truncate(3.1415,3);#3.141 No rounding
边栏推荐
- Is user authentication really simple
- NLP Chinese corpus project: large scale Chinese natural language processing corpus
- I would like to ask how the top ten securities firms open accounts? Is it safe to open an account online?
- Selenium library 4.5.0 keyword explanation (I)
- Recommendation of knowledge base management system
- SPI based on firmware library
- P3371 [template] single source shortest path (weakened version)
- 网上的低佣金链接安全吗?招商证券怎么开户?
- Axure resources and prototype tool Axure RP 9 download
- [PHP basics] cookie basics, application case code and attack and defense
猜你喜欢

Alibaba cloud container service differentiation SLO hybrid technology practice

Private project practice sharing populate joint query in mongoose makes the template unable to render - solve the error message: syntaxerror: unexpected token r in JSON at

A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders

How to make icons easily

Regular expressions and text processors for shell programming

Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028

Report on the construction and development mode and investment mode of sponge cities in China 2022-2028

Axure resources and prototype tool Axure RP 9 download
![[Mongodb] 2. Use mongodb --------- use compass](/img/d5/0eb7dd4c407fbf2e9ba1b175f5424d.jpg)
[Mongodb] 2. Use mongodb --------- use compass

Tencent interview: can you find the number of 1 in binary?
随机推荐
MySQL is installed as a Windows Service
Private project practice sharing populate joint query in mongoose makes the template unable to render - solve the error message: syntaxerror: unexpected token r in JSON at
D26: the nearest number (translation + solution)
Zipper table in data warehouse (compressed storage)
China standard gas market prospect investment and development feasibility study report 2022-2028
Gossip about redis source code 83
D28:maximum sum (maximum sum, translation)
What are the application fields of digital twins in industry?
No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
How will the complete NFT platform work in 2022? How about its core functions and online time?
What is the difference between NFT, SFT and dnft? How to build NFT platform applications?
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
2022 system integration project management engineer examination knowledge points: software development model
AI Challenger 2018 text mining competition related solutions and code summary
Solution to the impact of Remote Code Execution Vulnerability of log4j2 component on December 9, 2021
JDBC Technology
The upload experience version of uniapp wechat applet enters the blank page for the first time, and the page data can be seen only after it is refreshed again
2022 a special equipment related management (elevator) examination questions and a special equipment related management (elevator) examination contents
2022 t elevator repair registration examination and the latest analysis of T elevator repair
I would like to ask how the top ten securities firms open accounts? Is it safe to open an account online?