因为建表没考虑好字段大小,需要对sybase 中现有的表结构进行的字段大小进行增加
sybase 中可以对现有的表结构进行增加,修改(可以增大长度,也可以减少,在oracle中
只能增大),删除(在oracle中不容许)
alter table add ... (增加)
alter table modify ... (修改)
alter table drop ... (删除)
比如:
alter table ABC add a1 varchar(10) null,a2 numeric(10) null,....
alter table ABC modify a1 varchar(20) null,a2 numeric(5) null,...
alter table ABC drop a2
增加一个字段的字段大小
比如对ABC表中的a1字段长度设置为 20
alter table ABC modify a1 varchar(20) null
go