oracle 11g常用命令

-
1
2
3
4
5
6
7
8
9
10
11
12
drop table t1;(t1是表的名字)删除表空间

flashback table t1 to before drop;(t1是表的名字)找回删除的表空间

alter table student add year int 添加列
create table student(
name varchar(255),
year int
) 创建表空间
alter table student drop column year; 删除列
delete from student where name='fun'; 删除列中的name 为fun的数据
delete from student 在不删除表空间的情况下,删除所有列