一、SQL语句之增
insert into 表的名字 (字段名)values(值);
向student表中插入一个学生的数据
insert into student (num,name,sex,age) values(140010,张三,男,23)
二、SQL语句之删
删除student表中num=140011的这条数据。
delete from student where num=140011;
三、SQL语句之改
我们可以将num为140010的age值更改为21。
update student set age =21 where ID=140010;
四、SQL语句之查
查询语句非常的重要的,所以需要详细来说一下。
1、查询student表中所有数据
select * from student;
2、查询student表中所有的name和sex
select name,sex from student;
3、查询num为140010这一行的数据
select * from where id =140010;
Copyright © 2019- efsc.cn 版权所有 赣ICP备2024042792号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务