DQL(数据查询语言)
-
查询语句,凡是select语句都是DQL。
- DQL执行顺序:
关键字 | 顺序 |
---|
select | 5 |
from | 1 |
where | 2 |
group by | 3 |
having | 4 |
order by | 6 |
limit | 7 |
5123467
DML(数据操作语言)
- insert delete update,对表当中的数据进行增删改。
DDL(数据定义语言)
- create drop alter,对表结构的增删改。
TCL(事务控制语言)
- commit提交事务,rollback回滚事务。(TCL中的T是Transaction)
DCL(数据控制语言)
- grant授权、revoke撤销权限等。