添加、修改、删除多列的话,用逗号隔开。
一、创建表结构:
create table test1
(id INTEGER not null,
name varchar2(20) );
二、添加字段的语法:alter table tablename add (column datatype [default value][null/not null],….);
示例:alter table 表名 add (字段名 数据格式 );
三、修改字段的语法:alter table tablename modify (column datatype [default value][null/not null],….);
四、删除字段的语法:alter table tablename drop (column);
五、 修改注释:
comment on column 表名.字段名 is '注释内容';
comment on table 表名 is '注释内容';
参考网址:http://www.jb51.net/article/45539.htm