Simple database understanding exercise

"WEB first week practice"

learning target:

1. Know what is a database?
2. The connection between database tables, columns, fields, and data.
3. Choose MySQL database for simple operation of learning to add, delete, check and modify.
Recommendation: It is best to use the PHPstudy integrated environment. No need to download a separate MySQL.
Check: record your own learning results in CSDN. And publish a blog.

Learning Content:

1. What is the database and why use Mysql database
2. The connection between database tables, columns, fields and data
3. Simple operations for adding, deleting, checking and modifying MySQL database

study-time:

January 11th-January 16th

Learning output:

One, the database

  数据库是存放数据的仓库。它的存储空间很大,可以存放百万条、千万条、上亿条数据。但是数据库并不是随意地将数据进行存放,是有一定的规则的,否则查询的效率会很低。当今世界是一个充满着数据的互联网世界,充斥着大量的数据。即这个互联网世界就是数据世界。数据的来源有很多,比如出行记录、消费记录、浏览的网页、发送的消息等等。除了文本类型的数据,图像、音乐、声音都是数据。

Database is a computer software system that stores and manages data according to data structure. The concept of a database actually includes two meanings:
(1) A database is an entity, which is a "warehouse" that can keep data reasonably, and users store transaction data to be managed in the "warehouse". There are "data" and "library". These concepts are combined into a database.
(2) Database is a new method and technology of data management, which can organize data more appropriately, maintain data more conveniently, control data more closely and use data more effectively.
(3) The basic component of the database: the way and method of the entity storing the data to manage the data

Second, the connection between database tables, columns, fields, and data*

Insert picture description here
Insert picture description here
Insert picture description here
Column: is another name for the field.
A table is the most basic object of a database and is used to store user data. All operations of a relational database are ultimately run around the data table.

3. Simple operations for adding, deleting, checking and modifying MySQL database *

Log in to the MySQL server
Insert picture description here
Create a library called ccc;
Insert picture description here
create a table called lihongming.bbb; Insert picture description here
delete a table;
Insert picture description here
delete a database;
Insert picture description here
insert data into the lihongming.ddd table

Insert picture description here

Query data records
Insert picture description here
Modify data in the table
Insert picture description here

Reference from https://blog.csdn.net/rzy1248873545/article/details/110518619
https://blog.csdn.net/m0_51974791/article/details/112653248
https://blog.csdn.net/aiming66/article/ details/51426263

Guess you like

Origin blog.csdn.net/qq_53142368/article/details/112691184