当前位置:Gxlcms > 数据库问题 > Access数据库SQL语句操作

Access数据库SQL语句操作

时间:2021-07-01 10:21:17 帮助过:2人阅读

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;

 

Access数据库SQL语句操作

标签:

人气教程排行