当前位置:网站首页>Database to query the quantity of books lent in this month. If it is higher than 10, it will display "more than 10 books lent in this month". Otherwise, it will display "less than 10 books lent in thi
Database to query the quantity of books lent in this month. If it is higher than 10, it will display "more than 10 books lent in this month". Otherwise, it will display "less than 10 books lent in thi
2022-06-24 08:48:00 【CSDN Q & A】
database ,MySQL, The book management system
problem : Query the quantity of books lent this month , If it is higher than 10 Ben Shi , Show “ The number of books lent this month is greater than 10 Ben ”, Otherwise, it will show “ Books lent this month are less than 10 Ben ”.
My code can already query the number of books lent this month ,
But the following display is greater than or less than 10 This statement will not write .
select b_id,sum(borrow.number) from borrow where month(bodate)=month(now()) group by b_id;Thank you for your answer .
remarks :
borrow: Table name
b_id: Book number
number: Number of books lent
bodate: Borrowing date
边栏推荐
- every()、map()、forEarch()方法。数组里面有对象的情况
- 【NOI模拟赛】摆(线性代数,杜教筛)
- 表单图片上传在Chorme中无法查看请求体的二进制图片信息
- Increase insert speed
- Why can ping fail while traceroute can
- Redis cluster data skew
- WebRTC系列-网络传输之5选择最优connection切换
- 分布式 | 如何与 DBLE 进行“秘密通话”
- [explain the difference between operation and maintenance and network engineering]
- À propos de ETL il suffit de lire cet article, trois minutes pour vous faire comprendre ce qu'est ETL
猜你喜欢

Qt 中发送自定义事件

OpenCV每日函数 结构分析和形状描述符(7) 寻找多边形(轮廓)/旋转矩形交集

uniapp 热更新后台管理

110. 平衡二叉树-递归法

À propos de ETL il suffit de lire cet article, trois minutes pour vous faire comprendre ce qu'est ETL

一文详解|增长那些事儿

opencv最大值滤波(不局限于图像)

input的聚焦后的边框问题

Pymysql inserts data into MySQL and reports an error for no reason

K8S部署高可用postgresql集群 —— 筑梦之路
随机推荐
every()、map()、forEarch()方法。数组里面有对象的情况
Smart power plant: how to make use of easycvr to build a safe, stable, green and environment-friendly intelligent inspection platform
leetcode 1268. Search suggestions system
The pie chart with dimension lines can set various parameter options
Ordering of MySQL composite index
Lombok use
深度学习与神经网络:最值得关注的6大趋势
How to handle the problem that calling easycvr address integration cannot be played through easyplayer player?
QT source code analysis -- QObject (2)
MySQL | 视图《康师傅MySQL从入门到高级》笔记
2020中国全国各省市,三级联动数据,数据机构(数据来自国家统计局官网)
pymysql 向MySQL 插入数据无故报错
双指针模拟
Variable declaration and some special variables in shell
提高INSERT速度
数据中台:中台实践与总结
Earthly 容器镜像构建工具 —— 筑梦之路
110. 平衡二叉树-递归法
小黑ai4code代码baseline啃食1
uniapp 热更新后台管理