参考: 百度文库
SQL 语言是对数据库中所有实体的描述定义
SQL语言主要分为4种: DDL, DML, DCL, TCL
一 DDL(Data Definition Language):
- Table Manipulation
- create database,
- create table,
- alter table,
- drop table,
- truncate table
- View Manipulation
- create view,
- replace view,
- drop view,
- Other
- comment 注释
- truncate
- rename
二 DML(Data Manipulation Language):
- Table Manipulation
- insert
- update
- delete
- select
- call
- lock table 锁,用于控制并发
三 DCL(Data Control Language):
- grant 授权
- revoke 取消授权
四 TCL(Transaction Control Language):
- commit 提交完成的工作
- save point 定义能够回滚的保存点
- rollback 回滚
- set transacation