当前位置:网站首页>Mysql database
Mysql database
2022-07-25 06:33:00 【Zhan ³】
Catalog
2. MySQL Basic operation of database
1. Database concept
Definition : A collection of data , It has a unified structure and defense in a unified storage medium , It is the integration of multiple application data , And can be shared by various applications
characteristic : Integrate 、 share
2. MySQL Basic operation of database
SQL contain 4 Parts of :
Data query language (DQL):
Its statement , Also known as “ Data retrieval statements ”, To get data from a table , Determine how the data is presented in the application . Reserved words SELECT yes DQL( Also all SQL) The most used verb , other DQL The common reserved words are WHERE,ORDER BY,GROUP BY and HAVING. these DQL Reserved words are often associated with other types of SQL Statement together .
Data operation language (DML):
Its sentences include verbs INSERT,UPDATE and DELETE. They are used to add , Modify and delete rows in the table . Also known as action query language .
Data control language (DCL):
Its sentences are passed through GRANT or REVOKE Get permission to , Determine the access of individual users and user groups to database objects . some RDBMS You can use GRANT or REVOKE Control access to form columns .
Data definition language (DDL):
Its sentences include verbs CREATE and DROP. Create a new table or delete a table in the database (CREAT TABLE or DROP TABLE); Index the table, etc .DDL It includes many reserved words related to obtaining data in the human database directory . It's also part of the action query .
3. MySQL data type
| type | meaning |
|---|---|
| int | integer |
| float | Single precision floating point 4 byte 32 position |
| double | Double precision floating point 8 byte 64 position |
| char | Fixed length character types |
| varchar | Variable length character types |
| text | Text |
| image | picture |
| decimal (5,2) | 5 A valid length number , After the decimal point is 2 position |
边栏推荐
- C#读取倍福Beckhoff变量
- Date (day 76)
- Common mode inductance has been heard many times, but what principle do you really understand?
- Android interview question: why do activities rebuild ViewModel and still exist—— Jetpack series (3)
- Developers must read: 2022 mobile application operation growth insight white paper
- Review of some classic exercises of arrays
- node.express中req.body总是undefind解决
- How to troubleshoot the problem of too many inodes
- R strange grammar summary
- 机器学习 Keras拟合正弦函数
猜你喜欢

JZ7 重建二叉树

How does vscode enable multiple terminals? How to display horizontally?

C # --metroframework framework calls the metromodernui library and uses it in the toolbar
![[sword finger offer] analog implementation ATOI](/img/01/76a3b1fcc6403368a363146d553777.png)
[sword finger offer] analog implementation ATOI

Common mode inductance has been heard many times, but what principle do you really understand?

labelme标注不同物体显示不同颜色以及批量转换

It is said that screentogif is a GIF recording artifact, but I don't know that its strength is far from here
Shell script realizes the scheduled backup of MySQL database on two computers

SAP FICO 第三节 BDC和LTMC导入S4财务科目

HTX00001_ Keil51 bug encountered in serial port parsing
随机推荐
Ida Pro novice tutorial
VBA common objects
The code of Keil and Si compiler is not aligned??
Binary search tree (day 75)
Easy to understand: basic knowledge of MOS tube
R strange grammar summary
Typedef usage and template
【Unity3D】UGUI回调函数
DOM event type
Seekbar attribute reference
Define usage method and template
Function template learning record
labelme标注不同物体显示不同颜色以及批量转换
Some interview questions collected
Learning notes: detailed use of 12864 LCD module
你了解PowerBI中的去年同期吗
What does PK, NN, Qu, B, UN, ZF, AI, G mean when creating tables in MySQL
EXCEL
[sword finger offer] analog implementation ATOI
【datawhale202207】强化学习:强化学习基础