当前位置:网站首页>The difference between round and truncate in SQL (round or truncate)
The difference between round and truncate in SQL (round or truncate)
2022-06-26 17:21:00 【Big data Xiao Wang】
1、ROUND Can be rounded , According to the corresponding digits
2、TRUNCATE Intercept directly by digits , Do not round off
example :
select truncate(3.1487,3)

select round(3.1487,3)

边栏推荐
- She said she was tired! So tired! I want to change my career
- Swap two numbers
- Convert the decimal positive integer m into the number in the forward K (2 < =k < =9) system and output it in bits
- Toupper function
- Environment setup mongodb
- Classical synchronization problem
- Platform management background and merchant menu resource management: access control design of platform management background
- Teach you to learn dapr - 9 Observability
- Distributed Architecture Overview
- Teach you to learn dapr - 6 Publish subscription
猜你喜欢

MySQL index

Sandboxed container: container or virtual machine

10 cloud security best practices that enterprises need to know

分布式缓存/缓存集群简介

丰富专业化产品线, 江铃福特领睿·极境版上市

Leetcode 1170. Frequency of occurrence of the minimum letter of the comparison string (yes, solved)

The latest masterpiece of Alibaba, which took 182 days to produce 1015 pages of distributed full stack manual, is so delicious
![[buuctf.reverse] 126-130](/img/df/e35633d85caeff1dece62a66cb7804.png)
[buuctf.reverse] 126-130

Teach you to learn dapr - 4 Service invocation

When I was in the library, I thought of the yuan sharing mode
随机推荐
Redis' 43 serial cannons, try how many you can carry
Secrets of gear contract
进军AR领域,这一次罗永浩能成吗?
Don't believe it, 98% of programmers are like this
Technical scheme design of chain game system development - NFT chain game system development process and source code
The student record consists of student number and academic performance. The data of n students have been stored in the a structure array to find out the student record with the lowest performance
A simple membership card management system based on Scala
Basic requirements: 7 problems in singleton mode
Inspirational. In one year, from Xiaobai to entering the core Department of Alibaba, his counter attack
Quantitative contract system development analysis case - detailed explanation of contract quantitative system development scheme
数字藏品与NFT到底有何区别
Programmer interview guide - self introduction
Platform management background and merchant menu resource management: merchant registration management design
Use middleware to record slow laravel requests
Introduction to minimal API
Multiply the values of the upper triangular elements of the array by M
物联网协议的王者:MQTT
Detailed contract quantification system development scheme and technical description of quantitative contract system development
Teach you to learn dapr - 5 Status management
Comp281 explanation