![](https://img-blog.csdnimg.cn/img_convert/54dcaee5e7bc7e0ba6f1fda56b5515d7.png)
一、DML
DML,数据操作语言,用来对数据库中表的数据记录进行增删改操作。
![](https://img-blog.csdnimg.cn/img_convert/0fc2b3e8c4df79f97802407f93bc3238.png)
①插入数据
![](https://img-blog.csdnimg.cn/img_convert/f1011ae091c0f35dc9d7795b9bc69f6a.png)
insert into employee(id,workno,name,gender,age,idcard,entrydate) values (1,'1','Senleo','女',10,'123456789012345678','2023-01-23');
②修改数据
![](https://img-blog.csdnimg.cn/img_convert/f1e3d5048d8bdbe4e1a027be1518a213.png)
update employee set name="Sean" where id = 1;
update employee set name="Sean",gender="男" where id = 1;
③删除数据
![](https://img-blog.csdnimg.cn/img_convert/97e3dab36a36064d1ef344e2a95d9dba.png)
delete from employee;
二、DCL-权限控制
![](https://img-blog.csdnimg.cn/img_convert/bf380c706a351e36e9ef444efae13996.png)
![](https://img-blog.csdnimg.cn/img_convert/be7a30cc7b968b6e076f3d544419de94.png)
![](https://img-blog.csdnimg.cn/img_convert/7dce4b45b30e0d731eccf3ac46f282cc.png)