use mybd1;
insert into student(sid,name,gender,age,birth,address,score)
values (1001,'张三','男',18,'2001-12-23','北京',85.5)
;
insert into student(sid,name,gender,age,birth,address,score)
values (1002,'李四','女',19,'2001-12-29','上海',95.5),
(1003,'王五','男',17,'2001-11-23','深圳',100)
;
insert into student(sid) value(1004);
insert into student(sid,name) value(1005,'赵六');
insert into student values(1006,'张华','女',21,'199-01-08','广州',80);
update student set address = '重庆'
update student set address = '北京' where sid = 1004;
update student set address = '上海' where sid > 1004;
update student set address = '北京',score = 100 where sid = 1005;
delete from student where sid = 1004;
delete from student;
truncate table student;
truncate student;
|