Access的字段类型和Asp操作Access的常用语句asp

/ / 2023-06-02   阅读:2499
Access的字段类型和Asp操作Access的常用语句...

Access字段类型:

1.文本(TEXT)

2.备注(MEMO)

3.数字(INTEGER)

4.日期/时间(DATETIME)

5.货币(CURRENCY)

6.自动编号字段类型(AUTOINCREMENT)

7.是/否(BIT/YESNO)

8.OLE对象(OLEOBJECT)

9.超链接(HYPERLINK)

10.查询向导


Asp操作Access的常用语句:

创建表

create table mytable (id integer primary key,name text(50),age integer)


删除表

drop table mytable


修改表名

alter table mytable rename to newtable


添加字段

alter table mytable add column description text(255)


修改字段

alter table mytable alter column description text(500)


删除字段

alter table mytable drop column description


修改字段名

alter table mytable change oldfieldname newfieldname datatype(length)


添加自动编号字段

alter table cuz_config add column id autoincrement primary key

我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈