当前位置:网站首页>SQL language
SQL language
2022-06-12 06:28:00 【Work hard working!】
1. SQL brief introduction
1.SQL english :Structured Query Language, abbreviation SQL
2. Structured query language , A programming language for operating relational databases
3. Define a unified standard for operating all relational databases
4. For unified requests , There may be some differences in the operation mode of each database ,
We call it “ dialect ”.
2. SQL General grammar
1.SQL Statements can be written in one or more lines , It ends with a semicolon .
2.MySQL Database SQL Statement is case insensitive , It is recommended to use uppercase .
3. notes
* Single-line comments :-- The comment or # The comment (MySQL specific )
* Multiline comment :/* notes */
3. SQL classification
- DDL(Data Definition Langage) Data definition language , Used to define database objects : database , surface , Column, etc.
- DML(Data Manipulation Langage) Database operation language , It is used to add, delete and modify the bid winning data in the database
- DQL(Data Query Langage) Data query language , Used to query the records of tables in the database ( data )
- DCL(Data Control Langage) Data control language , It is used to define the access rights and security level of the database , And create users

4. DDL
1.DDL Operating the database 
Open Command Prompt 

2.DDL Operation table 



SQL What are the data types of ?

Make a case 


5. Graphic tool Navicat
Navicat
* Navicat Premium12 It's management and development MySQL or MariaDB The ideal solution .
* This comprehensive front-end tool for database management 、 Development and maintenance provides an intuitive and powerful graphical interface
* Official website http://www.navicat.com.cn
tips:[ This is the cracked version taught in detail by a blogger ](https://www.cnblogs.com/xibb/p/11975811.html)
First time tutorial :

Select the database you want to operate , Click query to write SQL Statement to operate on the database , Code execution , Select the code you want to execute , Right click to select execute the selected .

6. DML
1. Add data 
2. Modifying data 
3. Delete data 
7. DQL
1. The query syntax 
2. Basic query
tips:* The number represents all Try not to use , Because I don't know the list you want to operate 
3. Conditions of the query 
4. Sort query 
5. Aggregate functions 
6. Group query 

7. Paging query 

边栏推荐
- OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks
- 张驰咨询:流程是一剂万能良药吗?
- Redis application (I) -- distributed lock
- Leetcode January 10 daily question 306 Additive number
- C # converts the hexadecimal code form of text to text (ASCII)
- MLP sensor
- LeetCode-1490. Clone n-ary tree
- Opencv_ 100 questions_ Chapter V (21-25)
- 上传文件(post表单提交form-data)
- LeetCode-2034. Stock price fluctuation
猜你喜欢

Leetcode January 10 daily question 306 Additive number

n次贝塞尔曲线

Word vector training based on nnlm

张驰咨询:流程是一剂万能良药吗?

Reentrantlock underlying AQS source code analysis

MLP sensor

Cause analysis of motion blur / smear caused by camera shooting moving objects

N-degree Bessel curve

Jetson TX2 machine brushing jetpack4.2 (self test successful version)

Automatic modeling of Interchange
随机推荐
Video based fire smoke detection using robust AdaBoost
MNIST handwritten data recognition by CNN
MLP sensor
LeetCode-1189. Maximum number of balloons
Excel VBA opens a file that begins with the specified character
leetcode 704. Binary search
分段贝塞尔曲线
An error occurred while downloading the remote file The errormessage
Modifying theme styles in typora
platform driver
leetcode 35. Search insert location
Leetcode personal question solution (Sword finger offer3-5) 3 Duplicate number in array, 4 Find in 2D array, 5 Replace spaces
上传文件(post表单提交form-data)
The first principle of thinking method
Bert use
On the normalization of camera rotation interpolation
RMB classification II
PHP development environment construction and database addition, deletion, modification and query
Android studio mobile development creates a new database and obtains picture and text data from the database to display on the listview list
About session Getattribute, getattribute error