-
創建表
create table test
(id varchar2(20) not null); -
增加一個字段
alter table test
add (test01 varchar2(30) default ‘無名氏’ not null); -
修改一個字段
alter table test
modify (test01 varchar2(16) default ‘無名氏’ not null); -
刪除一個字段
alter table test
drop column test01 ; -
重命名表
ALTER TABLE table_name RENAME TO new_table_name;
