Access的字段类型和Asp操作Access的常用语句asp
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
下一篇:asp循环输出多行文本框内容
我要评论