当前位置:网站首页>SQL基础
SQL基础
2022-06-26 06:37:00 【The code family】
一:SQL通用语法
1.SQL语句可以单行或多行书写,以分号结尾。
2. SQL语句可以使用空格/缩进来增强语句的可读性。
3. MySQL数据库的SQL语句不区分大小写,关键字建议使用大写。
4. 注释:
单行注释: --注释内容或#注释内容(MySQL特有)
多行注释: /* 注释内容*/
二:SQL分类
分类 全称 说明
DDL Data Definition Language 数据定义语言,用来定义数据库对象(数据库,表,字段)
DML Data Manipulation Language 数据操作语言,用来对数据库表中的数据进行增删改
DQL Data Query Language 数据查询语言,用来查询数据库中表的记录
DCL Data Control Language 数据控制语言,用来创建数据库用户、控制数据库的 访问权限
边栏推荐
- 连接数服务器数据库报:错误号码2003Can‘t connect to MySQL server on ‘服务器地址‘(10061)
- Requirement analysis of personal blog system
- PyTorch使用多GPU并行训练及其原理和注意事项
- MySQL 数据库的小白安装与登录
- C# Nuget离线缓存包安装
- Laravel implements groupby to query the number of packets
- Format one insert per line using mysqldump- Using mysqldump to format one insert per line?
- MySQL delete in without index
- TCP連接與斷開,狀態遷移圖詳解
- Marketing skills: compared with the advantages of the product, it is more effective to show the use effect to customers
猜你喜欢

宝塔服务器搭建及数据库远程连接
Play with a variety of application scenarios and share secrets with Kwai MMU

EFK升级到ClickHouse的日志存储实战

Design and practice of low code real-time data warehouse construction system

Reasons why MySQL indexes are not effective

Gof23 - abstract factory pattern

MYSQL索引不生效的原因

Installation and login of MySQL database

When vs code uses prettier to format JS, there is a space between the name of the function definition and the parentheses, and ESLIt does not allow this space

Open source demo| you draw and I guess -- make your life more interesting
随机推荐
如何把数据库的数据传给复选框
Use the fast proxy to build your own proxy pool (mom doesn't have to worry about IP being blocked anymore)
Architecture design method
TCP connection and disconnection, detailed explanation of state transition diagram
typescript的type
Comparison between Prometheus and ZABBIX
A new paradigm for large model application: unified feature representation optimization (UFO)
Requirement analysis of personal blog system
How to set MySQL triggers is a simple tutorial for novices
同步通信和异步通信的区别以及优缺点
Introduction to the use of TS generics in functions, interfaces and classes
浏览器的四大内核:Trident,Gecko,Webkit,Blink
Laravel 实现 groupBy 查询分组数量
Thinking skills of technical leaders
Go学习笔记1.3-变量的数据类型篇
打印数字的位信息
zip(*arg)的用法
Self attention and multi head self attention (MSA) in transformer
Open source demo| you draw and I guess -- make your life more interesting
Several promotion routines of data governance