当前位置:网站首页>MySQL judges the calculation result and divides it by 100
MySQL judges the calculation result and divides it by 100
2022-06-30 12:46:00 【Full stack programmer webmaster】
Pictured , When the company counts the actual transaction amount , Like I pay 1 Cents , But the amount in the database is 100, So when calculating the actual amount , I need to divide the amount by 100, Pictured
as follows sql Shown , Next to the field you want to divide by Divide You can divide the data you want
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;Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/100681.html Link to the original text :https://javaforall.cn
边栏推荐
- pyqt5界面的布局与资源文件的载入
- Generate entity classes from SQL Server database tables through EF core framework
- 基于ThinkPHP5封装-tronapi-波场接口-源码无加密-可二开--附接口文档-作者详细指导-2022年6月30日08:45:27
- Clipboardjs - development learning summary 1
- 腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
- Instructions for legend use in SuperMap iclient3d 11i for cesium 3D scene
- QT MSVC installation and commissioning
- How to use AI technology to optimize the independent station customer service system? Listen to the experts!
- Grep match lookup
- 【MySQL】MySQL的安装与配置
猜你喜欢

Visual Studio配置Qt并通过NSIS实现项目打包

Solve the problem that the server cannot be connected via SSH during reinstallation

Idea has a new artifact, a set of code to adapt to multiple terminals!
![[one day learning awk] array usage](/img/75/4333452142a3c7325e0712f3306985.png)
[one day learning awk] array usage
![[one day learning awk] use of built-in variables](/img/5b/bc1b91804e03dcfd3fe7eae8084eb4.png)
[one day learning awk] use of built-in variables

Visual studio configures QT and implements project packaging through NSIS

Shell基础入门

Qt中的数据库使用

Lichuang EDA learning notes 10 common connector component identification and passive buzzer driving circuit

Instructions for legend use in SuperMap iclient3d 11i for cesium 3D scene
随机推荐
60 divine vs Code plug-ins!!
【一天学awk】内置变量的使用
grep匹配查找
Four ways for flinksql to customize udtf
Introduction to the novelty of substrate source code: comprehensive update of Boca system Boca weight calculation, optimization and adjustment of governance version 2.0
[one day learning awk] array usage
Visual Studio配置Qt并通过NSIS实现项目打包
Today in history: Microsoft acquires PowerPoint developers; SGI and MIPS merge
pyqt5界面的布局与资源文件的载入
Redis-缓存问题
Efficient elliptic curve point addition and multiplication in scrypt
Joplin implements style changes
FlinkSQL自定义UDTF使用的四种方式
Lichuang EDA learning notes 10 common connector component identification and passive buzzer driving circuit
基于ThinkPHP5封装-tronapi-波场接口-源码无加密-可二开--附接口文档-作者详细指导-2022年6月30日08:45:27
【一天学awk】数组的使用
第十三章 信号(三)- 示例演示
c# 怎样能写个sql的解析器
Solve the problem that the server cannot be connected via SSH during reinstallation
Substrate 源码追新导读: 修复BEEFY的gossip引擎内存泄漏问题, 智能合约删除队列优化