insert into employee values(1,'Rose','Tyler ',4,null,1500);
insert into employee values(2,'Matha','Jones',4,null,2200);
insert into employee values(3,'Donna','Noble',4,null,1300);
insert into employee values(4,'Doctor','Who',null,null,3500);
insert into employee values(5,'Jack','Harkness',1,null,3000);
3. 将 3 号员工的 last_name 修改为“Tate”,并提交,查询数据;
update employee set last_name='Tate' where id=3;
commit;
select * from employee;
4. 将所有工资少于 5000 的员工的工资修改为 5000 (丌提交),并设置保存点,查询数据;
update employee set salary=5000 where salary<5000;
savepoint a;
select * from employee;
5. 删除 employee 表中所有数据(丌提交),查询数据;
//delete from +表名==delete+表名
delete employee where 2=2;
select * from employee;