当前位置:网站首页>Introduction to database - Introduction to database
Introduction to database - Introduction to database
2022-07-27 03:27:00 【Caribbean waves】
Introduction to database related foundations
Hello everyone , This time I bring you my new column : database , The database is relatively not that difficult , As long as you practice hard 、 Memorize grammar , I believe that learning database well is not a problem , Bloggers will start from 0 analyse , Explain the knowledge points of database step by step , And will give many examples . most important of all , Bloggers will not use software , Use the most primitive way -> Command line to explain , The advantage of this explanation is to write sentence by sentence , It won't cause the problem that readers can't keep up with their ideas !
QQ:162196770
WeChat :PRIDE_Xu_
Gitee:https://gitee.com/jialebihaitao
The next blog portal :
Article column :
Introduction to database
- 1、 Introduction to database
1、 Introduction to database
1.1 What to learn from database ?
- Basic operation of database ( With
SQLStatement is the core ),SQLIs a programming language , It's easy to use - The underlying principle of database ( Mainly for common interview questions )
- Database programming ( Use Java Language operation database )
1.2 What is a database ?
Database is a software ( One kind of software ), This kind of software function is ” Management data ”, Software that organizes and stores data
1.3 Relationship with data structure
database : Software
data structure : Discipline
Database software in the implementation process , Is very dependent on data structures , Realize the internal management of database software , It will be widely used in various data structures ~
The subject of data structure is discussing how to organize and manage data ~ The purpose of management is to ” Additions and deletions ”
1.4 classification
1.4.1 Relational database
Definition : The organizational form of data is “ surface ” As a structure , Be similar to
excel. First of all, there must be ⼀ Multiple headers , There are many columns in the header , And every ⼀ The type of the column , The inserted data is a row in the table . Everyone in this line ⼀ Columns need to correspond to the header structure .
For data “ constraint ”( Verification of data legitimacy ) Relatively strong
Suitable for most scenarios
MySQL,Oracle,SQL Server,SQLite
1.4.2 Non relational database
- Non relational database ( Also called
NoSQL): The organizational form of data is “ Key value pair ” As a structure . Be similar toMap - When storing, it is necessary to formulate
keyandvalue, Of each group of datavalueWhich fields should be included in , There is no explicit requirement , Lower constraints on data - Compared with relational databases , sacrificed ⼀ Part of the function , But in exchange for higher efficiency and stronger horizontal expansion ability It is more suitable for distributed systems
1.5 The basic components of a computer ( Digression )

External storage : Divided into floppy disks 、 Hard disk 、 Compact disc 、 Hard disk 、U disc (flash), Hard disks and U disc
The difference between memory and external memory :
Memory has less storage space (8G,16G), The storage space of external memory is large (512G,1T)
Memory access speed is fast , The access speed of external memory is slow ( Probably worse 3-4 An order of magnitude )
The external memory here refers specifically to the mechanical hard disk , Hard disk also includes mechanical hard disk and
SSD, Mechanical hard disk is limited by the physical structure of mechanical hard disk , Cause his storage speed , It has not developed for nearly ten years . however SSD Solid state disk access speed is very fast , Much faster than mechanical hard disk , The best solid state drive , It's almost catching up with the most garbage memory ~ But in generalSSDIt will be much slower than memoryMemory costs are high , Low cost of external storage
Data in memory disappears after power failure , The data in the external memory is still after power failure
It's not absolute . But generally, the storage time of mechanical hard disk storage data is a few years ~ More than ten years
Most computers in the world today (99% above ) It is built according to the above structure ~
1.6 The granddaddy : Von Neumann and Turing ( Digression )
Tell you about the glorious history of the two grandparents
Part I: Von Neumann
Von Neumann architecture , be called “ Von Neumann ” The big guy put forward , Can be said to be 20 The century is the most
NBAll in all , It is a mathematician , Or physicists , Or a chemist , Father of computer , In World War II , Also participated in the Manhattan Project , They came together to study the atomic bomb .At the age of , one day , Boss von Neumann , Go by train ~( Green car ), There is a guy on the opposite side “ A researcher at Princeton University ”, Study one for ” Computing machine “, But there are some bottlenecks , I can't get it down ~~~ Boss von Neumann went for a walk , For some time , He took the lead in the research of the first generation of computers !
Computers use binary , It was also put forward by boss Feng ~
Part II: Turing
Turing laid the theoretical foundation of computer
Turing also participated in World War II ~ The greatest contribution , Cracked the German telegraph encryption system , This directly promoted the Normandy landing
But unfortunately, he died young ~ It is said to have received persecution from the British royal family ~
1.7 Storage location
In general ,MySQL The data of is saved on the hard disk ~ (” Persistent storage “ The way ), But there are also a few databases , It stores data in memory ( such as :Redis,Tair…)
So in the actual large-scale development , The most prone to problems , Database .
by comparison , The data structure we learned before ~ Especially the code written before , Data is basically stored in memory ~( Variables created in code , Save it to the corresponding memory space )
1.8 Introduction to common database software
Oracle: The best database , Beyond all doubtThe best database Namely
Oracle, No ⽤ His reasons : your ! Ordinary students can't afford ,⼀ Some small and medium-sized companies can't afford , Even some big factories can't afford it , Those who can really afford it are the rich and powerful financiers , Such as banks .Characteristics of banks :
- Data is particularly important
- Not bad money
Your main thing is not the use of software , Instead, you spend money on ⼀ Peace , don 't worry , But also ⼀ A pot bearer ( Something's wrong, someone's lying ), Something went wrong.
OracleThe technology ofSupport will provide on-site service , So what you spend money on is service .
by comparison
MySQLIt is more suitable for us , Free open source , Whoring for nothing ⼀ Shi Shuang , Have been whoring for nothing ⼀ Straightforward ~and ,
OracleBasically, it needs to run on a computer with ultra-high configuration !( To exaggerate , Only national computers are suitable for use )MySQL: Free open source , The user experience is also very goodAt home , At the very beginning ,
MySQLOur market share is very low , Or toOracleMainlyAlibaba takes the lead , Set off ⼀ site “ Go to Oracle” The revolution of . at that time
MySQLyes ⼀ An alternative , Alibaba was also developing its own database at that timeAt the beginning of the replacement , Many problems , Fortunately, countless bigwigs have come one after another , Step on the pit and fill it ,
MySQLAlso experienced ⼀ A rapid development process . FinalMySQLIt's relatively stable and funny , It is called the current very mainstream database .however
MySQLHigh speed development of , Also grabbed a lotOracleMarket share .OracleTo containMySQLThe development of , a fundamental solution , toMySQLbought , Immediately after buyingMySQLNo more open source ( Although it is still free for the time being )meanwhile
OracleIt's alsoJavaDadOracleThis company is particularly fond of doing things ~GoogleThe whole yearAndroid, I wanted to usePython. At the right timePythonMy father left Google , Google switched the language toJava.With
AndroidFrom wind to water , Everyone is jealous of what they don't want ,OracleAt this time, an idea occurred , Just putJavaI bought it , thenOracleJust GoogleWent to court , If you want to use
JavaDevelop Android , You have to pay ( Blackmail !) Google lost , Only lose moneySo Google is angry and ready to develop ⼀ Generation mobile terminal system , Development language carried ⾔
Dart( Google self-developed language ⾔), Equipped frameFlutteretc. .here
MySQLThe author is also angry ,OracleThe company searches , References to . So he used toMySQLBased on the open source version of ⼀ Branches , It's calledMariadb, It is still open source and free .MariadbAnd the originalMySQLAre compatible with each other , It's OK to use any one in your current studySQL Server: Pretty good also , Marketing strategies hurt himSQL ServerDatabase produced by Microsoft
It's actually ⼀ A very good and powerful database , But no one used it
The main reason :- Rechargeable , And it's not too cheap
- In the early
SQL ServerandWindowsThe platform is bundled , But at that time, the mainstream server systems wereLinux
Because of this marketing mistake , Leading to the loss of market shareSQL ServerThe market share of isMySQLTake overC#Its market share has also beenJavaTake over
Then Microsoft reacted , Adjustments have also been made , Give WaySQL ServerandC#can ⽀ Cross platform , But it's too late
SQLite: The largest installed database in the worldAndroid phone comes with its own database , Small and light
There are other databases , such as SQLite,HBase,MongoDB,Redis wait
Later in practical work , The most used database , still MySQL, Between databases , Not much difference ,“ By knowing one method you will know all ”
边栏推荐
- be based on. NETCORE development blog project starblog - (16) some new functions (monitoring / statistics / configuration / initialization)
- Leetcode 207. curriculum (July 26, 2022)
- Code review pyramid
- How many implementation postures of delay queue? Daily essential skills!
- 太强了,一个注解搞定接口返回数据脱敏
- 图解用户登录验证流程,写得太好了!
- Worthington木瓜蛋白酶解离系统解决方案
- Win10/win11 lossless expansion of C disk space, cross disk consolidation of C and e disks
- 代码审查金字塔
- Idea 中添加支持@Data 插件
猜你喜欢

若依的环境的部署以及系统的运行

30 minutes to thoroughly understand the synchronized lock upgrade process

FactoryBean的getObject调用时机
![[learning notes, dog learning C] string + memory function](/img/53/86e529dcc8a5a6b682e9485e7c152a.png)
[learning notes, dog learning C] string + memory function

MySQL中文失败问题

客户案例 | 关注老年用户体验,银行APP适老化改造要避虚就实

Spark: calculate the average value of the same key in different partitions (entry level - simple implementation)

【树链剖分】模板题

延时队列的几种实现姿势?日常必备技能!

Byte side: can TCP and UDP use the same port?
随机推荐
Code practice when the queue reaches the maximum length
flask_restful中reqparse解析器继承
Comprehensive care analysis lyriq Ruige battery safety design
网络安全/渗透测试工具AWVS14.9下载/使用教程/安装教程
Spark: calculate the average value of the same key in different partitions (entry level - simple implementation)
自己梳理的LocalDateTime的工具类
Practice of online problem feedback module (XV): realize the function of online updating feedback status
索引最佳实践
水仙花数(DAY 78)
How can you access the domestic server and overseas server quickly with one database?
架构基本概念和架构本质
spark学习笔记(四)——sparkcore核心编程-RDD
shell awk
最低票价(DAY 80)
Plato farm has a new way of playing, and the arbitrage eplato has secured super high returns
$128million! IQM, a Finnish quantum computing company, was supported by the world fund
Yilingsi T35 FPGA drives LVDS display screen
redis入门练习
最大连续子序列(DAY 77)
Leetcode 207. curriculum (July 26, 2022)
