1、加字段:
alter table 表名 ADD 字段名 类型;
eg:
alter table sys_cwzd ADD SCCLLJ VARCHAR2(50);2、加备注:
comment on column 表名.字段名 is '备注名';eg:
内容扩展:
添加新字段:
alter table bulletin add citycode varchar(6) not null default 0; # 城市代码1.创建数据库时设置编码
create database test character set utf8;2.创建表时设置编码
create table test(id int primary key)DEFAULT charset=utf8;3.修改数据库编码
alter database test character set utf8;4.修改表默认编码
alter table test character set utf8;