当前位置:网站首页>数据库,查询本月借出书的数量,如果高于10本时,显示“本月借出书大于10本”,否则显示“本月借出书小于10本”
数据库,查询本月借出书的数量,如果高于10本时,显示“本月借出书大于10本”,否则显示“本月借出书小于10本”
2022-06-24 07:00:00 【CSDN问答】
数据库,MySQL,图书管理系统
问题:查询本月借出书的数量,如果高于10本时,显示“本月借出书大于10本”,否则显示“本月借出书小于10本”。
我的代码已经可以实现查询本月借出书籍数量了,
但是后面的显示大于小于10本语句不会写。
select b_id,sum(borrow.number) from borrow where month(bodate)=month(now()) group by b_id;感谢回答。
备注:
borrow:表名
b_id:图书编号
number:借出书籍数量
bodate:借书日期
边栏推荐
- [acnoi2022] I have done it, but I can't
- Qmenu response in pyqt
- 新技术实战,一步步用Activity Results API封装权限申请库
- (pkcs1) RSA public private key PEM file parsing
- jwt(json web token)
- 软件过程与项目管理期末复习与重点
- Tencent cloud ASR product PHP realizes real-time voice authentication request
- OpenCV get(propId) 常用的值
- How to use the virtual clock of FPGA?
- Fund raising, trading and registration
猜你喜欢

李白最经典的20首诗排行榜

2021-03-16 COMP9021第九节课笔记

2021-03-04 comp9021 class 6 notes

Pat 1157: school anniversary

Two methods of QT exporting PDF files

WCF TCP protocol transmission
![[untitled]](/img/94/792e8363dbfe67770e93b0dcdc8e72.png)
[untitled]

ZUCC_ Principles of compiling language and compilation_ Experiment 02 fsharp Ocaml language

Question 3 - MessageBox pop-up box, modify the default background color

Use of swift basic closure /block (source code)
随机推荐
[ACNOI2022]不是构造,胜似构造
JUC个人简单笔记
DHCP, TFTP Foundation
MAYA重新拓布
Five level classification of loans
"Wechat cloud hosting" first practical battle | introduction to minimalist demo
Tool functions – get all files in the project folder
Catégorie de prêt 5
Ordinary token
ZUCC_ Principles of compiling language and compilation_ Experiment 03 getting started with compiler
Win10 cloud, add Vietnamese
Opencv get (propid) common values
[ACNOI2022]做过也不会
io模型初探
Redis的Cluster集群数据倾斜
小样本故障诊断 - 注意力机制代码 - BiGRU代码解析实现
ZUCC_编译语言原理与编译_实验01 语言分析与简介
【无标题】
C language_ Love and hate between string and pointer
WPS的JS宏实现图片正文在同一段落的分离方法