吴伟贤のBlog

Feed Rss

access清空表数据,重置标识列0

05.18.2013, windows, by .

access 不支持 truncate table test

使用如下解决,两句

delete * from test

ALTER TABLE test ALTER COLUMN ID COUNTER (1,1)

alter table 表名 alter COLUMN 字段名 counter(1,1)
这句就是在清空表后,重建标识列,这里的参数1,1表示从1开始,每次加1

评论已关闭。