将自动递增的主键插入到Access表中 [英] Insert an auto-incremented primary key into an Access table

查看:55
本文介绍了将自动递增的主键插入到Access表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Access数据库中有一个巨大的表,其中有超过50万条记录,没有PK.是否可以将自动递增的主键列插入到已经存在的Access表中?

We have a giant table in an Access database with over 500k records and no PK. Is it possible to insert an auto-incrementing primary key column into an already existing Access table?

推荐答案

是的,可以并且很容易地通过编辑表并添加自动增量类型字段来完成.唯一的规则是每个表只能有一个自动增量.

Yes, it is and can be done quite simply by editing the table and adding an autoincrement type field. The only rule is that you can only have one autoincrement per table.

这篇关于将自动递增的主键插入到Access表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆