首页 > 数据库技术 > 详细

Access数据库SQL语句操作

时间:2016-07-09 19:24:41      阅读:152      评论:0      收藏:0      [点我收藏+]

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语句操作

原文:http://www.cnblogs.com/yxlq/p/5656276.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!