标签:
1、建表语句:
autincrement就跟MsSqlServer中的identity (1,1)一样的效果,实现自增量。
create table test (
Sn autoincrement,
testId integer not null,
testName char(30) not null,
testMemo memo null,
sdate datetime,
testCol text null,
primary key (Sn)
);
2、修改列类型:
改变列testcol的类型为memo,如:
alter table test alter column testcol memo;
alter table test alter column testcol long;
alter table test alter column testcol float;
alter table test alter column testcol money;
alter table test alter column testcol currency;
增加列:
alter table test add testcoladd long;
删除列:
alter table test drop testcoladd;
标签:
原文地址:http://www.cnblogs.com/yxlq/p/5656276.html