当前位置:网站首页>数据库,查询本月借出书的数量,如果高于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:借书日期
边栏推荐
- 新技术实战,一步步用Activity Results API封装权限申请库
- Permission model DAC ACL RBAC ABAC
- How to replace the web player easyplayerproactivex Key in OCX?
- Introduction to NC machine tool programming [G-code]
- WCF TCP protocol transmission
- 12-- merge two ordered linked lists
- DHCP, TFTP Foundation
- [acnoi2022] I have done it, but I can't
- 2021-03-11 comp9021 class 8 notes
- os.path.join()使用过程中遇到的坑
猜你喜欢

2022 tea artist (intermediate) work license question bank and online simulation examination

WCF TCP protocol transmission

List of Li Bai's 20 most classic poems

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

5分钟,客服聊天处理技巧,炉火纯青

longhorn安装与使用

ZUCC_编译语言原理与编译_实验01 语言分析与简介

JUC personal simple notes

根据网络上的视频的m3u8文件通过ffmpeg进行合成视频

2021-03-16 comp9021 class 9 notes
随机推荐
[ACNOI2022]不是构造,胜似构造
普通token
Qmenu response in pyqt
(pkcs1) RSA public private key PEM file parsing
贷款五级分类
Export MySQL database to xxx SQL, set xxx The SQL file is imported into MySQL on the server. Project deployment.
12-- merge two ordered linked lists
2021-03-11 COMP9021第八节课笔记
11--无重复字符的最长子串
App Startup
小样本故障诊断 - 注意力机制代码 - BiGRU代码解析实现
[introduction to point cloud dataset]
ZUCC_ Principles of compiling language and compilation_ Experiment 03 getting started with compiler
Catégorie de prêt 5
Pat 1157: school anniversary
Blue Bridge Cup_ Queen n problem
Maya re deployment
How to implement approval function in Tekton
2021-03-09 COMP9021第七节课笔记
ZUCC_ Principles of compiling language and compilation_ Experiment 01 language analysis and introduction