当前位置:网站首页>MySQL related terms
MySQL related terms
2022-07-06 21:53:00 【handsome-bit】
database
Organize... According to the data structure 、 Warehouse for storing and managing data ; Is a long-term storage in the computer 、 organized 、 Can share
Of 、 A collection of large amounts of data under unified management ;
OLTP
OLTP(on-line transaction processing) Online transaction processing ; Addition, deletion, modification and query of main databases ;
OLTP It is mainly used to record the occurrence of certain business events ; The data will be updated in the database by adding, deleting and modifying
operation , It requires high real-time performance 、 Strong stability 、 Make sure the data is updated in time ;
OLAP
OLAP(On-Line Analytical Processing) Online analytical processing ; Mainly for database query ;
When the data accumulates to a certain extent , We need to make a summary analysis of what happened in the past , You need to put the past period of time
Take out the data generated in for statistical analysis , Get the information we want from it , Support the company in making decisions , At this time
It's doing OLAP 了 ;
SQL
Definition
Structured query language (Structured Query Language) abbreviation SQL, Is a special purpose programming language , It's a number
Database query and programming language , For data access and query 、 Update and manage relational database system .SQL It's relational data
Standard language for library systems .
Relational databases include :MySQL, SQL Server, Oracle, Sybase, postgreSQL as well as MS Access etc. ;
SQL The order includes :DQL、DML、DDL、DCL as well as TCL;
DQL
Data Query Language - Data query language ;
select : Retrieve specific records from one or more tables ;
DML
Data Manipulate Language - Data operation language ;
insert : insert record ;
update : Update record ;
delete : Delete record ;
DDL
Data Define Languge - Data definition language ;
create : Create a new table 、 View of the table 、 Or objects in the database ;
alter : Modify existing database objects , For example, modify the attributes or fields of the table ;
drop : Delete table 、 Database objects or views ;
DCL
Data Control Language - Data control language ;
grant : Grant user rights ;
revoke : Reclaim user rights ;
TCL
Transaction Control Language - Transaction control language ;
commit : Transaction submission ;
rollback : Transaction rollback ;
Database terminology
database : A database is a collection of related tables ;
Data sheet : A table is a matrix of data ;
Column : A column contains the same type of data ;
That's ok : Or record is a set of related data ;
Primary key : The primary key is unique ; A data table can only contain one primary key ;
Foreign keys : Foreign keys are used to associate two tables , To ensure referential integrity ;MyISAM The storage engine itself does not support foreign keys , Only play a note
Release effect ; and innodb Full support for foreign keys ;
Composite key : Or key combination ; Use multiple columns as an index key ;
Indexes : Data for quick access to data tables ; An index is a structure that sorts the values of one or more columns in a table ;
create table parent (
id int not null,
primary key(id)
) engine=innodb;
create table child (
id int,
parent_id int,
foreign key(parent_id) references parent(id) ON DELETE CASCADE ON UPDATE
CASCADE
) engine=innodb;
– The referenced table is the parent table , The referenced table is called a child table ;
– When defining a foreign key , You can set the behavior ON DELETE and ON UPDATE, The action when the behavior occurs can be selected :
– CASCADE Sub tables do the same thing
– SET NULL The corresponding fields of the updated sub table are NULL
– NO ACTION The parent class makes the corresponding behavior report
边栏推荐
- 一行代码可以做些什么?
- 十一、服务介绍及端口
- Absolute primes (C language)
- JS学习笔记-OO创建怀疑的对象
- 记一次清理挖矿病毒的过程
- The relationship between root and coefficient of quadratic equation with one variable
- Vit paper details
- Redistemplate common collection instructions opsforset (V)
- High precision face recognition based on insightface, which can directly benchmark hongruan
- npm run dev启动项目报错 document is not defined
猜你喜欢
Why is the cluster mode of spark on Yan better than the client mode
Efficiency tool +wps check box shows the solution to the sun problem
guava:Collections. The collection created by unmodifiablexxx is not immutable
Why rdd/dataset is needed in spark
Why does MySQL index fail? When do I use indexes?
1292_FreeROS中vTaskResume()以及xTaskResumeFromISR()的实现分析
Reptile practice (V): climbing watercress top250
Michael smashed the minority milk sign
Fastjson parses JSON strings (deserialized to list, map)
PostgreSQL 安装gis插件 CREATE EXTENSION postgis_topology
随机推荐
string的底层实现
JS learning notes OO create suspicious objects
Record the process of cleaning up mining viruses
抖音将推独立种草App“可颂”,字节忘不掉小红书?
基于InsightFace的高精度人脸识别,可直接对标虹软
语谱图怎么看
强化学习-学习笔记5 | AlphaGo
Acdreamoj1110 (multiple backpacks)
Redistemplate common collection instructions opsforzset (VI)
One line by line explanation of the source code of anchor free series network yolox (a total of ten articles, you can change the network at will after reading it, if you won't complain to me)
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
Numpy download and installation
R3live notes: image processing section
SQL:存储过程和触发器~笔记
Four common ways and performance comparison of ArrayList de duplication (jmh performance analysis)
50 commonly used numpy function explanations, parameters and usage examples
一行代码可以做些什么?
Huawei has launched attacks in many industries at the same time, and its frightening technology has made European and American enterprises tremble
Earned value management EVM detailed explanation and application, example explanation
通过数字电视通过宽带网络取代互联网电视机顶盒应用