Mysql database introduction
The purpose of database
When many friends first started learning databases, it was difficult to understand the role of databases. It’s unclear what relationship the database has to our real life and virtual life.
We use this chapter to speed up beginners' understanding of databases and database systems.
Nowadays, everything we see that is related to daily life and needs to be recorded is basically placed in the database:
- ID card information is placed in the system of the Ministry of Public Security
- Bank card balances and transaction records, transfer information
- Hotel booking information (all databases have been stolen and information leaked in some way)
- Planes, trains, cars Online ticket purchase records
- Various websites, QQ, online shopping, Tieba, favorite music, movie collection information
- Mobile phone records, balance, bus card balance, water bill , electricity bills, lottery purchase records
- Game equipment, levels, magic, strength, attack capabilities and other information
- US aircraft carriers are also using the mysql database to manage aircraft carrier-related information
... ...and so on
Everything in our lives is recorded in the database. You can think about how important the database is!
In the 21st century, what will happen to the world if humans do not have databases?
Five basic units of database
- Database server
- Database
- Data table
- Data field
- Data row
We will now explain the five basic units above:
Database server. Refers to a computer used to run database services. In small and medium-sized enterprises, it is usually one unit. When the amount of data storage and calculation is very large, multiple units can exist. Multiple database servers work together to store or compute. Since data security is very important, we often back up the data in the database server.
database. There can be multiple databases in a database server. Mainly used for classification. We can build traffic information databases, game databases, hotel reservation databases... Mainly used to divide data for different purposes into large blocks according to business.
data sheet. For example in the game database. According to this game, it is divided into different data tables. Specifically used to distinguish different data in the game. For example: user data (user, password); character data; all equipment and equipment information; user's recharge information; medicine, magic potion information... etc.
data fields , also called data column. It is the columns in the tables we see every day. In the table, we will split a user table into columns. As shown below (Table 1): user number, user name, gender, and age are fields. In a real database, the data fields need to be changed to English and written as: id, username, sex, and age.
Data row. The real data exists in each row of the table. Fields (columns) divide the format in which a table should store data. And rows are real data. Each row needs to follow the specifications and requirements of the data fields (columns) to store data.
(Table 1)
Continuing Learning- Course Recommendations
- Courseware download
-
IntermediateFront-end Vue3 actual combat [handwritten vue project]
2857 people are watching -
ElementaryAPIPOST tutorial [Popularization of technical concepts related to network communication]
1795 people are watching -
IntermediateIssue 22_Comprehensive actual combat
5521 people are watching -
ElementaryIssue 22_PHP Programming
5172 people are watching -
ElementaryIssue 22_Front-end development
8713 people are watching -
IntermediateBig data (MySQL) video tutorial full version
4525 people are watching -
ElementaryGo language tutorial-full of practical information and no nonsense
2794 people are watching -
ElementaryGO Language Core Programming Course
2814 people are watching -
IntermediateJS advanced and BootStrap learning
2563 people are watching -
IntermediateSQL optimization and troubleshooting (MySQL version)
3374 people are watching -
IntermediateRedis+MySQL database interview tutorial
2963 people are watching -
ElementaryDeliver food or learn programming?
5708 people are watching
Students who have watched this course are also learning
- Let's briefly talk about starting a business in PHP
- Quick introduction to web front-end development
- Large-scale practical Tianlongbabu development of Mini version MVC framework imitating the encyclopedia website of embarrassing things
- Getting Started with PHP Practical Development: PHP Quick Creation [Small Business Forum]
- Login verification and classic message board
- Computer network knowledge collection
- Quick Start Node.JS Full Version
- The front-end course that understands you best: HTML5/CSS3/ES6/NPM/Vue/...[Original]
- Write your own PHP MVC framework (40 chapters in depth/big details/must read for newbies to advance)
- About us Disclaimer Sitemap
- php.cn:Public welfare online PHP training,Help PHP learners grow quickly!
User name | Gender | Age | |
---|---|---|---|
李文凯 | Male | 18 | |
京田 | 女 | 16 | ##3 |
Male | 22 |