当前位置:网站首页>The basics of database learning
The basics of database learning
2022-08-07 21:22:00 【sakeww】
Database Basics
What is a database?
You can use files to store data, why do you need a database?
Files save data have the following disadvantages:
File security issues
Files are not conducive to data query and management
Files are not conducive to storing massive data
Files are inconvenient to control in the program
/p>
Database storage medium:
Disk
Memory
In order to solve the above problems, experts have designed something more conducive to managing data - database, which can manage data more effectively.The level of the database is an important indicator to measure the level of a programmer.
Software angle

Document Angle
Database composition:
Database server (musqld)
Database + table structure
Database client (mysql: is a client software)
The database is a web server
mysql or database belongs to the application layer
mysql OS:needs to be installed, the bottom layer must be the file interface that directly or indirectly accesses the OS
Basic usage
Server, Database, Table Relationships
The so-called database server installation is just a database management system program installed on the machine. This management program can manage multiple databases. Generally, developers will create a database for each application.
In order to save the data of the entities in the application, multiple tables are generally created in the database to save the data of the entities in the program.
The relationship between database server, database and table is as follows:
The so-called creation of a database is essentially to create a directory under Linux
The so-called creation of a database table is essentially to create a specific file in a specific directory!
Common basic operations
Common database operations
# show all your databasesshow databases;# Create a database (it is recommended not to use those databases that come with the system)create database (the name of the database you want to use);# Using the databaseuse (the database name you want to use);# Use the database you created first, and then display which tables are in your databaseshow tables;# show table structuredesc tables_name ; Try it out


SQL Classification
DDL【data definition language】 Data definition language, used to maintain the structure of stored data
Represents instructions: create, drop, alter
DML【data manipulation language】Data manipulation language, used to operate on data
Representing instructions: insert, delete, update
DML is divided into a separate DQL, data query language,
represents the command: select
DCL【Data Control Language】 Data control language, mainly responsible for authority management and transactions
Representative instructions: grant, revoke, commit
Current system supported storage engines
边栏推荐
猜你喜欢

Win7系统下System Idle Process占用率高怎么办

打开方式默认怎么修改 怎么更改文件的打开方式

2022win7旗舰版永久激活密钥 win7旗舰版最新免费激活码分享

How to install dual system on Apple computer

How to check your broadband account and password How to check your broadband account and password

webstrom 插件开发(一)

小米3手机怎样连接电脑 小米3连接电脑传文件的教程

关于架构的认知

City Safety Series Science | Alarm bells for electric shock accidents, remember to cut off the power first to save people

怎么查询宽带账号密码 如何查宽带账号和密码
随机推荐
Pytest学习-日志模块
Unity's latest UnityWebRequest download, while displaying the download progress, and displaying the network speed, posted it today to share with you
Pytest learning - log module
Unity中C#单例模式使用总结
Icon和Ico图片的区别
黑盒子问题
The difference between Icon and Ico pictures
7zip自带hash校验功能
一般处理程序ashx接入微信服务器配置
How to check your broadband account and password How to check your broadband account and password
怎么自动播放ppt ppt设置自动播放方法
台式电脑亮度怎么调整 台式电脑亮度在哪里调
【LeetCode】1552. 两球之间的磁力
webstrom 插件开发(一)
【LeetCode】636.函数的独占时间
【LeetCode】636. Exclusive time of function
《法律人思维与写作》读书笔记
现在网上开户安全?手机开户哪个证券公司佣金最低?
Apache Hudi vs Delta Lake:透明TPC-DS Lakehouse性能基准
新电脑如何分区硬盘 新电脑分区怎么分区
