当前位置:网站首页>MySQL's past and present life, Hello, MySQL
MySQL's past and present life, Hello, MySQL
2022-07-23 20:28:00 【The end of the world and you】
Mysql The past and this life ,Hello,Mysql
1. What is a database ?
database (Database) It's organized according to the data structure 、 Warehouse for storing and managing data .
Each database has one or more different API Used to create , visit , management , Search and copy saved data .
We can also store data in files , But reading and writing data in files is relatively slow .
therefore , Now we use a relational database management system (RDBMS) To store and manage large amounts of data . The so-called relational database , It's a database based on a relational model , With the help of set algebra and other mathematical concepts and methods to deal with the data in the database .
MySQL database
MySQL Is a relational database management system , The Swedish MySQL AB Companies to develop , At present belongs to the Oracle company .MySQL It's an associated database management system , The associated database keeps the data in different tables , Instead of putting all the data in one big warehouse , This increases speed and flexibility .
- MySQL It's open source. , At present, it belongs to Oracle Its products .
- MySQL Support large databases . Can handle large databases with tens of millions of records .
- MySQL standards-of-use SQL Data language form .
- MySQL Can run on multiple systems , And support multiple languages . These programming languages include C、C++、Python、Java、Perl、PHP、Eiffel、Ruby and Tcl etc. .
- MySQL Yes PHP Have good support ,PHP Is very suitable for Web Application development .
- MySQL Support for large databases , Support 5000 Data warehouse of ten thousand records ,32 Bit system table files can support 4GB,64 The largest table file supported by bit system is 8TB.
- MySQL It can be customized , Adopted GPL agreement , You can modify the source code to develop your own MySQL System .
2.RDBMS The term
Before we start to learn MySQL Before database , Let's get to know RDBMS Some of the terms :
- database : A database is a collection of related tables .
- Data sheet : A table is a matrix of data . A table in a database looks like a simple spreadsheet .
- Column : A column of ( data elements ) Contains the same type of data , For example, postal code data .
- That's ok : a line (= Tuples , Or record ) It's a set of related data , For example, a data subscribed by a user .
- redundancy : Store twice as much data , Redundancy reduces performance , But it improves the security of the data .
- Primary key : The primary key is unique . A data table can only contain one primary key . You can use the primary key to query data .
- Foreign keys : Foreign keys are used to associate two tables .
- Composite key : Composite key ( Composite key ) Use multiple columns as an index key , Generally used for Composite Index .
- Indexes : Use indexes to quickly access specific information in database tables . An index is a structure that sorts the values of a column or columns in a database table . A catalogue similar to a book .
- Referential integrity : Referential integrity requires that nonexistent entities cannot be referenced in a relationship . And entity integrity is the integrity constraint that a relational model must satisfy , The purpose is to ensure data consistency .
3.Mysql Database data structure

- Header (header): The name of each column ;
- Column (col): A collection of data of the same data type ;
- That's ok (row): Each line is used to describe the specific information of a record ;
- value (value): Details of the line , Each value must be of the same data type as the column ;
- key (key): The value of the key is unique in the current column .
4.SQL The classification of sentences
- DDL: Data query language
select - DML: Data operation language
insert delete update - DDL: Data definition language
create drop alterStructure of main operation table , Not data - TCL: Transaction control language
commit rollback - DCL: Data control language
grant revoke
Copyright notice : This tutorial is based on the rookie tutorial
边栏推荐
- Osgearth uses sundog's Triton ocean and silverlining cloud effects
- 太全了,建议收藏!SAP究竟可以为企业带来什么?
- 安装Win11找不到固态硬盘如何解决?
- 分布式事务方案:最大努力通知方案
- 从200W超级闪充看iQOO 10 Pro的 “共情”能量
- AtCoder B - Pizza
- 2022/7/22 训练日志
- 区间DP-链式石子合并
- Choice is greater than effort! Guiyang campus Xiaoge 0 foundation successfully transferred to software testing and gained 12K!
- 数组——11. 盛最多水的容器
猜你喜欢
随机推荐
Leetcode 238. product of arrays other than itself
解决1秒钟内,用户快速点击,重复请求的问题
【力扣】三数之和
2022 Shandong old age Expo, Shandong elderly care exhibition, China International elderly care service industry exhibition was held in September
美团大脑百亿级知识图谱的构建及应用进展
牛客C基础题练习
New product listing | A-share floor derivatives market point
21. Mix in details
Osgearth uses sundog's Triton ocean and silverlining cloud effects
非局部均值滤波(NON-LOCAL-mean)/注意力机制
Task03 notes 2
[Q] Error redirecting nmcli manual to TXT text
JDK安装包和Mysql安装包整理
Flink Catalog解读
When using polymorphism, two ideas to judge whether it can be transformed downward
D2Admin框架基本使用
Top ten shrinking industries in China in the first half of 2022
Drools(1):Drools简介
AtCoder——Subtree K-th Max
海通证券股票开户怎么样安全吗









