1.增加字段 alter table table_name add newColumn varchar2(200)
2.删除字段 ALTER TABLE table_name DROP COLUMN column_NAME
3.修改字段类型 alter table test modify test1 varchar2(100);
4.修改字段名 alter table test rename column test1 to test3;
5.添加主键:Alter table tabname add primary key(col)
删除主键:Alter table tabname drop primary key(col)
6.创建索引:create [unique] index idxname on tabname(col….)
删除索引:drop index idxname 注:索引是不可更改的,想更改必须删除重新建。
7.创建视图:create view viewname as select statement 删除视图:drop view viewname