当前位置:网站首页>Mysql判断计算结果,除以100
Mysql判断计算结果,除以100
2022-06-30 12:03:00 【全栈程序员站长】
如图,公司在统计实际成交金额时,比如我支付1分钱,但是数据库里存的金额是100,所以在统计实际金额时,我需要将金额在除以100,如图
如下sql所示,在你想要除以的字段旁边 除以 你想要的相除的数据即可
SELECT
IFNULL( sum( spu_amount_all ), 0 ) / 100
FROM
test_obp_data.data_user_order_goods
WHERE
pay_time BETWEEN '2021-04-29 00:00:00'
AND '2021-04-30 00:00:00'
AND is_refund = 0
AND shop_type != 3;
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/100681.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢
SuperMap 3D SDKs_ Unity plug-in development - connect data services for SQL queries
Openmldb meetup No.4 meeting minutes
Lvgl widget styles
Instructions for legend use in SuperMap iclient3d 11i for cesium 3D scene
海思3559万能平台搭建:获取数据帧修改后编码
What are the applications of 3D visual inspection in production flow
AGCO AI frontier promotion (6.30)
Iserver publishing es service query setting maximum return quantity
qt msvc 安装及调试
90.(cesium篇)cesium高度监听事件
随机推荐
beego开发博客系统学习(二)
redis在项目中的使用
"Xiaodeng" user personal data management in operation and maintenance
Building a database model using power designer tools
SuperMap iServer11i新功能----图例的发布和使用
Use of polarplot function in MATLAB
Hisilicon 3559 universal platform construction: introduction to YUV format
Introduction to sub source code updating: mid May: uniques NFT module and nomination pool
Linux系统Redis的安装
1254. 统计封闭岛屿的数目
Understanding and learning of MySQL indexing and optimization
Hisilicon 3559 sample parsing: Venc
JMeter之事务控制器
Edusoho enterprise training version intranet only deployment tutorial (to solve the problems of player, upload and background jam)
MySQL索引和优化的理解学习
ZABBIX monitors the number of TCP connections
Redis6学习笔记-第二章-Redis6的基本操作
Layout of pyqt5 interface and loading of resource files
A review of quantum neural networks 2022 for generating learning tasks
ES6新特性介绍