当前位置:网站首页>MySQL -- basic concept of database
MySQL -- basic concept of database
2022-07-02 17:56:00 【Sauerkraut】
Database system overview
What is data ? What is a database ? What is database management system ? What is a database system ?
data (Data)
Symbolic records describing transactions become data . Phone number 、 full name
Data is the basic object stored in the database , In addition to the basic numbers 、 Like the name of a Book 、 Price 、 Authors and others can be called data .
for example : In daily life , The information of a book can be described in this way ,《C Primer Plus》 It is a book published by the people's post and Telecommunications Publishing House , The author is prata (Prata S.), The price is 89.00, The date of publication is 2005 year 2 month 1 Japan , Such information can be described in the following way in the computer :
(C Primer Plus, People's post and Telecommunications Press , Prata (Prata S.),89.00,2005-2-1)
namely , Put the information according to "( The name of the book , Press. , author , Price , Publication date )" Organized in a different way , This forms a record .
If there are multiple such records now , Then it can be listed in a table , Manage data through tables .
For example, there are several data types :
Book number 、 stock : Integer data
The name of the book 、 author 、 Press. : String type
Price : Decimal type

Each row of data is called a record , Then the contents of each column are called fields . Each column has its own data type .
database (Database)
A warehouse for storing data .
Data should not only be stored , And it should be easy to read .
All the data is saved on the computer storage device , And the saved data will be stored in a certain format .
Database is stored in computer for a long time , organized 、 A collection of large amounts of data that can be shared . The data in the database is organized according to a certain data model 、 Description and storage , With less redundancy 、 High data independence and easy expansion , And can be shared by various users , So the database has permanent storage 、 There are three basic characteristics of organization and sharing .
In addition to the database , There should also be a database management system , To manage the data well .
Database management system (Database Management System,DBMS)
In addition to having a database , We also need to manage the database .
Organize and store data scientifically , It can efficiently acquire and maintain data .
The database management system is the same as the operating system , It is the basic software of computer , It is also a large and complex software system , The main functions include the following aspects : Data manipulation function , Database transaction management and operation management 、 Data definition function , Data organization 、 The establishment and maintenance of storage and management data .
Database system (Database System,DBS)
Database system (Database System,DBS) It consists of hardware and software .
Hardware is mainly used to store data in the database , Including computers 、 Storage devices, etc . The software part mainly includes the database management system 、 An operating system that supports the operation of a database management system , And support the access technology of multi language application development .
Database system refers to the system after introducing database into computer system .

It is the foundation of the whole database , All databases need to access data through applications written by development tools , The data usually needs to be managed by the database administrator (Database Administrator,DBA) maintain .
What is? SQL
Structured query language
SQL Its pronunciation is letters S-Q-L or sequel, yes Structure Query Language( Structured query language ) Abbreviation , Is currently widely used relational database standard language .
The language is written by IBM stay 20 century 70 Developed in the s , Be treated as IBM relational database System R Prototype relational language , Realize information retrieval in relational database .
The earliest support in the world SQL The standard is Oracle company , because SQL Easy to learn 、 Rich functions and flexible use , Therefore, it is sought after by many people . Through constant development 、 Perfection and expansion ,SQL By the National Bureau of standards (ANSI) American Standard for relational database language , Later, it was recognized by the international organization for standardization (ISO) International standards adopted as relational database language . Almost all relational database management system software supports SQL, Many manufacturers are also right SQL The basic commands have been expanded to varying degrees .
NoSQL Don't use SQL → no only SQL
SQL Language has the following parts :
Data operation language (Data Manipulation Language,DML)
Realize the operation of data , Used to retrieve or modify data .
Data definition language (Data Definition Language,DDL)
Structure used to define data , establish 、 Modify or delete database objects .
Data control language (Data Control Language,DCL)
Used to control the permissions of database users .
Transaction control (Transaction Control,TCL)
It defines the relevant commands including the start and end of the transaction .
DDL Included sub parts
Integrity constraints (integrity constraint) Whether the inserted data meets the requirements , If you don't meet the needs, you won't be allowed to insert
View definition (View Definition) You can easily check some of our data
SQL Has the following advantages ∶
SQL Not a specific database vendor's proprietary language . Almost all important database management systems support SQL, So just learn SQL Can interact with all databases .
SQL Easy to learn , The sentences in this language are all made up of English words with strong description , And the number of these words is small .
SQL Highly unprocessed , The box SQL Perform database operations , Just point out " What do you do ", No need to specify " How do you do it? ", The selection of access path and the execution of operation are automatically completed by the database management system .
边栏推荐
- PHP gets the number of days, hours, minutes and seconds between the two timestamps
- 读写 XML/JSON/INI 和 UBJSON 等格式的数据文件的统一接口
- Solution pour arrêter automatiquement les paquets Jar en cours d'exécution en éteignant le serveur de connexion xshell
- 辉芒微IO单片机FT60F010A-URT
- 【网络是怎样连接的】第五章 探索服务器
- Atcoder beginer contest 237 VP supplement
- [how is the network connected] Chapter 6 requests arrive at the server and respond to the client (end)
- Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14
- 智能水电表能耗监测云平台
- 王者荣耀商城异地多活架构设计
猜你喜欢

Daily question - "number of daffodils"

Pfc232-sop8/14/16 should be wide-ranging and can be tape programmed with burning program

Modbus protocol communication exception

Troubleshooting ideas that can solve 80% of faults

Develop a controller that prohibits deleting namespaces

Laravel文档阅读笔记-Custom Authentication Login And Registration Using Laravel 8

每日一题——小乐乐改数字

Ora-19838 -- restore control files to the standby database

Rk1126 platform project summary

【Golang | gRPC】使用openssl生成证书
随机推荐
MySQL进阶-事务及索引
Making tutorial of chicken feet with pickled peppers
win10 kms activator
基数排序的简单理解
Typescript
原装应广单片机 MCU芯片PMS152 SOP8封装 单片机开发
台湾飞凌FM8PB513B单片机提供单片机方案开发 产品设计
我的创作纪念日
把xshell連接服務器關掉,運行的jar包就自動停止的解决方案
The price is only 40 yuan. Pico development board of raspberry pie is added with WiFi module, and it is out of stock as soon as it comes into the market
Does pytorch support 32 bits?
每日一题——“水仙花数”
php获取两个时间戳之间相隔多少天多少小时多少分多少秒
Ora-19838 -- restore control files to the standby database
Experience Alibaba cloud character recognition OCR
应广单片机003烧录器自定义封装使用技巧
Modbus protocol communication exception
515. 在每个树行中找最大值
My creation anniversary
Taiwan Feiling fm8pb513b MCU provides MCU program development product design