当前位置:网站首页>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
边栏推荐
- A method to solve Bert long text matching
- 2022 system integration project management engineer examination knowledge points: software development model
- EPF: a fuzzy testing framework for network protocols based on evolution, protocol awareness and coverage guidance
- Stock price forecast
- 2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
- Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
- Make small tip
- Report on the construction and development mode and investment mode of sponge cities in China 2022-2028
- It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
- Actual combat | use composite material 3 in application
猜你喜欢
STM32 GPIO CSDN creative punch in
Smart fan system based on stm32f407
How to solve the "safe startup function prevents the operating system from starting" prompt when installing windows10 on parallel desktop?
2022 examination of safety production management personnel of hazardous chemical production units and examination skills of safety production management personnel of hazardous chemical production unit
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
Qtcharts notes (V) scatter diagram qscatterseries
2022 t elevator repair registration examination and the latest analysis of T elevator repair
Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
I wrote a chat software with timeout connect function
Double efficiency. Six easy-to-use pychar plug-ins are recommended
随机推荐
Axure resources and prototype tool Axure RP 9 download
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
How will the complete NFT platform work in 2022? How about its core functions and online time?
Actual combat | use composite material 3 in application
2022 a special equipment related management (elevator) examination questions and a special equipment related management (elevator) examination contents
[about text classification trick] things you don't know
Global and Chinese market of glossometer 2022-2028: Research Report on technology, participants, trends, market size and share
Qtcharts notes (V) scatter diagram qscatterseries
Briefly understand the operation mode of developing NFT platform
Global and Chinese market of breast cancer imaging 2022-2028: Research Report on technology, participants, trends, market size and share
Alibaba cloud container service differentiation SLO hybrid technology practice
[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections
What is the potential of pocket network, which is favored by well-known investors?
[NLP] text classification still stays at Bert? Duality is too strong than learning framework
Collation of the most complete Chinese naturallanguageprocessing data sets, platforms and tools
Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028
Generic tips
2/14 (regular expression, sed streaming editor)
Analysis of refrigeration and air conditioning equipment operation in 2022 and examination question bank of refrigeration and air conditioning equipment operation
SQL data update