当前位置:网站首页>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
边栏推荐
- IBEM mathematical formula detection data set
- Windos creates Cordova prompt because running scripts is prohibited on this system
- 物联网毕设 --(STM32f407连接云平台检测数据)
- The solution of Chinese font garbled code in keil5
- JS convert pseudo array to array
- Record 405 questions about bank callback post request
- Kivy教程之 如何通过字符串方式载入kv文件设计界面(教程含源码)
- GoLand 2021.1.1: configure the multi line display of the tab of the open file
- ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
- 使用vscode查看Hex或UTF-8编码
猜你喜欢
The shortage of graphics cards finally came to an end: 3070ti for more than 4000 yuan, 2000 yuan cheaper than the original price, and 3090ti
Go language web development series 26: Gin framework: demonstrates the execution sequence of code when there are multiple middleware
Mastering the cypress command line options is the basis for truly mastering cypress
Go: send the get request and parse the return JSON (go1.16.4)
Error running 'application' in idea running: the solution of command line is too long
MySQL 数据处理值增删改
Implementation of Muduo accept connection, disconnection and sending data
GoLand 2021.1: rename the go project
掌握Cypress命令行选项,是真正掌握Cypress的基础
[how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
随机推荐
Flutter dynamic | fair 2.5.0 new version features
Unity Render Streaming通过Js与Unity自定义通讯
[how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
[556. Next larger element III]
IBEM mathematical formula detection data set
Go language web development series 25: Gin framework: using MD5 to verify the signature for the interface station
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
Sequence table (implemented in C language)
MySQL installation, uninstallation, initial password setting and general commands of Linux
GoLand 2021.1.1: configure the multi line display of the tab of the open file
Libuv库 - 设计概述(中文版)
Golang — template
太阳底下无新事,元宇宙能否更上层楼?
Setting up remote links to MySQL on Linux
The reasons why there are so many programming languages in programming internal skills
Another industry has been broken by Chinese chips. No wonder the leading analog chip companies in the United States have cut prices and sold off
项目协作的进度如何推进| 社区征文
GoLand 2021.2 configure go (go1.17.6)
MapReduce implements matrix multiplication - implementation code
Universal dividend source code, supports the dividend of any B on the BSC