1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
-- 插入数据
insert into scott.student_info (sno, sname, sex, create_date)
values (1, '张三', '男', sysdate);
insert into scott.student_info (sno, sname, sex, create_date)
values (2, '李四', '女', sysdate);
insert into scott.student_info (sno, sname, sex, create_date)
values (3, '王五', '男', sysdate);
-- 修改
update scott.student_info si
set si.sex = '女'
where si.sno = 3;
-- 删除
delete scott.student_info si where si.sno = 1;
-- 提交
commit;
-- 查询
select * from scott.student_info;
|