当前位置:网站首页>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)

边栏推荐
- Find all primes less than or equal to Lim, store them in AA array, and return the number of primes
- Environment setup mongodb
- Teach you to learn dapr - 2 Must know concept
- 10 cloud security best practices that enterprises need to know
- [matlab project practice] prediction of remaining service life of lithium ion battery based on convolutional neural network and bidirectional long short time (cnn-lstm) fusion
- VSCode使用 - Remote-SSH 配置说明
- 量化合约系统开发分析案例丨合约量化系统开发方案详解
- 【动态规划】剑指 Offer II 091. 粉刷房子
- Detailed contract quantification system development scheme and technical description of quantitative contract system development
- 类型多样的石膏PBR多通道贴图素材,速来收藏!
猜你喜欢

【推荐系统学习】推荐系统的技术栈

去中心化NFT交易协议将击败OpenSea

Kubernetes essential tools: 2021
Teach you to learn dapr - 6 Publish subscription

Environment setup mongodb

She said she was tired! So tired! I want to change my career

Getting started with mongodb

LeetCode——226. 翻转二叉树(BFS)

有依赖的背包问题

ACL 2022 | zero sample multilingual extracted text summarization based on neural label search
随机推荐
Romance of the Three Kingdoms: responsibility chain model
Strength and appearance Coexist -- an exclusive interview with Liu Yu, a member of Apache pulsar PMC
The latest masterpiece of Alibaba, which took 182 days to produce 1015 pages of distributed full stack manual, is so delicious
When I was in the library, I thought of the yuan sharing mode
Troubleshooting ideas that can solve 80% of faults!
7 views on NFT market prospect
Leetcode - 226. Retourner l'arbre binaire (bfs)
Calculate the sum of the main diagonals of the array
Inspirational. In one year, from Xiaobai to entering the core Department of Alibaba, his counter attack
Demonstrate to Xiaobai the case of sub database and sub table
Deployment and operation of mongodb partitioned cluster
丰富专业化产品线, 江铃福特领睿·极境版上市
类型多样的石膏PBR多通道贴图素材,速来收藏!
Notes on flowus
分布式架构概述
Can Luo Yonghao succeed in entering the AR field this time?
Leetcode HOT100 (22--- bracket generation)
并发之线程安全
Toupper function
Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)