日期:2014-05-16  浏览次数:21059 次

十万火急 access中用create命令创建表,auto number类型的字段如何定义
各位大虾:
        要在access中用create命令创建表,其中有一个字段的数据类型是auto   number类型,请问该如何写该自段的数据类型.
      在线等待.拜托!!!!!!!!!!!!!!!!

------解决方案--------------------
可以用 counter
------解决方案--------------------
create table 表名(id counter(1,1))
------解决方案--------------------
例如:
Create Table ta (id counter,FullName char(10))

------------------------------
http://kmok.cn/
------解决方案--------------------
--用counter(1,1)或AutoIncrement(1,1)

create table 表名(id AutoIncrement(1,1))

--或

create table 表名(id counter(1,1))