当前位置:网站首页>MySQL 数据增删改查综合案例
MySQL 数据增删改查综合案例
2022-07-03 13:17:00 【陈弋辛】
目录
5、将名称为EmmaT的书的价格改为40,并将说明改为drama。
10、查询图书信息,按照库存量降序排列,如果库存量相同的按照note升序排列
12、按照note分类统计书的库存量,显示库存量超过30本的
16、查询书名和类型,其中note值为novel显示小说,law显示法律,medicine显示医药,cartoon显示卡通,joke显示笑话
17、查询书名、库存,其中num值超过30本的,显示滞销,大于0并低于10的,显示畅销,为0的显示需要无货
数据增删改查综合案例
1、创建数据库test01_library
2、创建表 books,表结构如下:
3、向books表中插入记录
1)不指定字段名称,插入第一条记录
2)指定所有字段名称,插入第二记录
3)同时插入多条记录(剩下的所有记录)
4、将小说类型(novel)的书的价格都增加5。
5、将名称为EmmaT的书的价格改为40,并将说明改为drama。
6、删除库存为0的记录。
7、统计书名中包含a字母的书
8、统计书名中包含a字母的书的数量和库存总量
9、找出“novel”类型的书,按照价格降序排列
10、查询图书信息,按照库存量降序排列,如果库存量相同的按照note升序排列
11、按照note分类统计书的数量
12、按照note分类统计书的库存量,显示库存量超过30本的
13、查询所有图书,每页显示3本,显示第二页
14、按照note分类统计书的库存量,显示库存量最多的
15、查询书名达到9个字符的书,不包括里面的空格
16、查询书名和类型,其中note值为novel显示小说,law显示法律,medicine显示医药,cartoon显示卡通,joke显示笑话
17、查询书名、库存,其中num值超过30本的,显示滞销,大于0并低于10的,显示畅销,为0的显示需要无货
18、统计每一种note的库存量,并合计总量
19、统计每一种note的数量,并合计总量
20、统计库存量前三名的图书
21、找出最早出版的一本书
22、找出novel中价格最高的一本书
23、找出书名中字数最多的一本书,不含空格
边栏推荐
- 全面发展数字经济主航道 和数集团积极推动UTONMOS数藏市场
- Multi table query of MySQL - multi table relationship and related exercises
- 记录关于银行回调post请求405 问题
- [how to earn a million passive income]
- Red hat satellite 6: better management of servers and clouds
- Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
- Resolved (error in viewing data information in machine learning) attributeerror: target_ names
- 使用Tensorflow进行完整的深度神经网络CNN训练完成图片识别案例2
- Swiftui development experience: the five most powerful principles that a programmer needs to master
- [today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
猜你喜欢

MySQL 数据处理值增删改

8 Queen question

Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases

又一个行业被中国芯片打破空白,难怪美国模拟芯片龙头降价抛售了

Students who do not understand the code can also send their own token, which is easy to learn BSC

rxjs Observable filter Operator 的实现原理介绍

MySQL functions and related cases and exercises

Mycms we media mall v3.4.1 release, user manual update

Unity embeddedbrowser browser plug-in event communication
![[技術發展-24]:現有物聯網通信技術特點](/img/f3/a219fe8e7438b8974d2226b4c3d4a4.png)
[技術發展-24]:現有物聯網通信技術特點
随机推荐
Golang - command line tool Cobra
掌握Cypress命令行选项,是真正掌握Cypress的基础
MySQL 数据处理值增删改
[技術發展-24]:現有物聯網通信技術特點
Setting up remote links to MySQL on Linux
The principle of human voice transformer
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
Replace the GPU card number when pytorch loads the historical model, map_ Location settings
Windos creates Cordova prompt because running scripts is prohibited on this system
Red Hat Satellite 6:更好地管理服务器和云
KEIL5出现中文字体乱码的解决方法
Libuv Library - Design Overview (Chinese version)
顺序表(C语言实现)
The reasons why there are so many programming languages in programming internal skills
Spark实战1:单节点本地模式搭建Spark运行环境
Resolved (error in viewing data information in machine learning) attributeerror: target_ names
php 迷宫游戏
Use docker to build sqli lab environment and upload labs environment, and the operation steps are provided with screenshots.
Field problems in MySQL
挡不住了,国产芯片再度突进,部分环节已进到4nm


























