当前位置:网站首页>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
边栏推荐
- 3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
- Aggregate function with key in spark
- 语谱图怎么看
- 缓存更新策略概览(Caching Strategies Overview)
- ViT论文详解
- Method return value considerations
- First batch selected! Tencent security tianyufeng control has obtained the business security capability certification of the ICT Institute
- SDL2来源分析7:演出(SDL_RenderPresent())
- Quick access to video links at station B
- Binary tree node at the longest distance
猜你喜欢
【力扣刷题】32. 最长有效括号
Michael smashed the minority milk sign
Microsoft technology empowerment position - February course Preview
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
跨分片方案 总结
numpy 下载安装
Checkpoint of RDD in spark
20 large visual screens that are highly praised by the boss, with source code templates!
LeetCode:1189. The maximum number of "balloons" -- simple
缓存更新策略概览(Caching Strategies Overview)
随机推荐
语谱图怎么看
抖音將推獨立種草App“可頌”,字節忘不掉小紅書?
bat脚本学习(一)
中国白酒的5场大战
Redistemplate common collection instructions opsforlist (III)
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
Shake Sound poussera l'application indépendante de plantation d'herbe "louable", les octets ne peuvent pas oublier le petit livre rouge?
jvm:大对象在老年代的分配
Fzu 1686 dragon mystery repeated coverage
JS learning notes OO create suspicious objects
Sparkshuffle process and Mr shuffle process
[Yu Yue education] reference materials for surgical skills teaching in Tongji University
guava:Collections. The collection created by unmodifiablexxx is not immutable
[Li Kou brushing questions] one dimensional dynamic planning record (53 change exchanges, 300 longest increasing subsequence, 53 largest subarray and)
[asp.net core] set the format of Web API response data -- formatfilter feature
Proxy and reverse proxy
C# 如何在dataGridView里设置两个列comboboxcolumn绑定级联事件的一个二级联动效果
红杉中国,刚刚募资90亿美元
Sdl2 source analysis 7: performance (sdl_renderpresent())
MySQL - transaction details