如何为.MDB文件重新编制索引 [英] how to reindex a .MDB file
本文介绍了如何为.MDB文件重新编制索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经从访问数据库中删除了所有记录.如何重新索引主键以使其从值1开始.
I have deleted all the records from the access database .How can i re index the Primary key to Start it with value 1.
推荐答案
如果没有该列上的任何外键,都应使用以下查询:
If you have no any foreign keys on that column, you should use the following query:
ALTER TABLE [MyTable] ALTER COLUMN [MyIdentityColumn] COUNTER(1,1)
这篇关于如何为.MDB文件重新编制索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文