当前位置:网站首页>Comprehensive case of MySQL data addition, deletion, modification and query
Comprehensive case of MySQL data addition, deletion, modification and query
2022-07-03 13:51:00 【Chen Yixin】
Catalog
Comprehensive cases of data addition, deletion, modification and query
1、 Create database test01_library
2、 Create table books, The table structure is as follows :
3、 towards books Insert records in the table
4、 Type the novel (novel) The prices of all the books have increased 5.
5、 Name as EmmaT Change the price of your book to 40, And change the description to drama.
6、 Delete inventory as 0 The record of .
7、 Included in the title of the statistical book a A Book of letters
9、 find “novel” Type of book , In descending order of price
11、 according to note Number of classified statistical books
12、 according to note Inventory of classified statistics , Show that the inventory exceeds 30 Ben's
13、 Search all books , Each page shows 3 Ben , Show second page
14、 according to note Inventory of classified statistics , Displays the most in stock
15、 Query the title of the book to 10 A one character book , Not including the space inside
18、 Count each note The stock of , And total
19、 Count each note The number of , And total
20、 Count the top three books in stock
21、 Find the first book published
22、 find novel The most expensive book in
23、 Find the book with the most words in the title , No spaces
Comprehensive cases of data addition, deletion, modification and query
1、 Create database test01_library
2、 Create table books, The table structure is as follows :
3、 towards books Insert records in the table
1) Do not specify field name , Insert the first record
2) Specify all field names , Insert second record
3) Insert multiple records at the same time ( All the remaining records )
4、 Type the novel (novel) The prices of all the books have increased 5.
5、 Name as EmmaT Change the price of your book to 40, And change the description to drama.
6、 Delete inventory as 0 The record of .
7、 Included in the title of the statistical book a A Book of letters
8、 Included in the title of the statistical book a The number of alphabetic books and the total stock
9、 find “novel” Type of book , In descending order of price
10、 Search for book information , In descending order of inventory , If the inventory is the same, follow note Ascending order
11、 according to note Number of classified statistical books
12、 according to note Inventory of classified statistics , Show that the inventory exceeds 30 Ben's
13、 Search all books , Each page shows 3 Ben , Show second page
14、 according to note Inventory of classified statistics , Displays the most in stock
15、 Query the title of the book to 9 A one character book , Not including the space inside
16、 Check the title and type of the book , among note The value is novel Show novel ,law Show legal ,medicine Show medicine ,cartoon Show cartoon ,joke Show jokes
17、 Check the title of the book 、 stock , among num Value exceeds 30 Ben's , Show unsalable , Greater than 0 And below 10 Of , Show best sellers , by 0 The display needs to be out of stock
18、 Count each note The stock of , And total
19、 Count each note The number of , And total
20、 Count the top three books in stock
21、 Find the first book published
22、 find novel The most expensive book in
23、 Find the book with the most words in the title , No spaces
边栏推荐
- Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
- Richview trvstyle liststyle list style (bullet number)
- Kivy教程之 如何通过字符串方式载入kv文件设计界面(教程含源码)
- Depth and breadth first traversal of tree (regardless of binary tree)
- 使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例
- Kivy tutorial how to automatically load kV files
- Ocean CMS vulnerability - search php
- CVPR 2022 | 美团技术团队精选6篇优秀论文解读
- AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
- 从零开始的基于百度大脑EasyData的多人协同数据标注
猜你喜欢

TensorBoard可视化处理案例简析

Flutter动态化 | Fair 2.5.0 新版本特性

Bidirectional linked list (we only need to pay attention to insert and delete functions)

Flutter动态化 | Fair 2.5.0 新版本特性

Go language unit test 5: go language uses go sqlmock and Gorm to do database query mock

The solution of Chinese font garbled code in keil5

常见的几种最优化方法Matlab原理和深度分析

Unity EmbeddedBrowser浏览器插件事件通讯

MySQL installation, uninstallation, initial password setting and general commands of Linux

KEIL5出现中文字体乱码的解决方法
随机推荐
Golang — template
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
There is nothing new under the sun. Can the meta universe go higher?
Go language web development series 25: Gin framework: using MD5 to verify the signature for the interface station
双向链表(我们只需要关注插入和删除函数)
HALCON联合C#检测表面缺陷——HALCON例程autobahn
Unity EmbeddedBrowser浏览器插件事件通讯
Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
Asp. Net core1.1 without project JSON, so as to generate cross platform packages
实现CNN图像的识别和训练通过tensorflow框架对cifar10数据集等方法的处理
Software testing is so hard to find, only outsourcing offers, should I go?
IBEM mathematical formula detection data set
Logback log sorting
太阳底下无新事,元宇宙能否更上层楼?
Leetcode-1175.Prime Arrangements
SQL Injection (AJAX/JSON/jQuery)
[556. Next larger element III]
Disruptor -- a high concurrency and high performance queue framework for processing tens of millions of levels
Unity Render Streaming通过Js与Unity自定义通讯
解决MySql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)


























