什么是最大的“自动号码”可以存在于Access数据库中吗?如何重置自动编号从1开始? [英] What is the largest "auto number" that can exist in an Access database? How to reset autonumber to start at 1?

查看:89
本文介绍了什么是最大的“自动号码”可以存在于Access数据库中吗?如何重置自动编号从1开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨:


我知道这是一个奇怪的问题,但我继承了一个复制文件的系统

和记录重新自动编号(如一个索引字段))经常,我想知道在没有系统崩溃的情况下这个数字有多高。


一个辅助问题是如何重置一个自动编号,以便序列再次开始

在1.


对于此文件,自动编号字段没有任何用处,除非作为

索引和唯一记录的标识符,因此重新编号记录没问题

如果没有尝试创建两个相同的数字(在这种情况下系统
引起你的注意!)。


问候


John Baker

解决方案

自动编号的最大尺寸为2,147,483,647,最小尺寸为

为-2,147,483,648。

单向将其重置为零是删除表格中的所有记录和

然后压缩数据库。


Jeff

" John Baker" <巴****** @ Verizon.net>在消息中写道

新闻:i6 ******************************** @ 4ax.com ...

嗨:

我知道这是一个奇怪的问题,但我继承了一个系统,其中
文件被复制并且记录重新自动编号(如一个索引字段))经常,我是
想知道在没有系统崩溃的情况下这个数字有多高。

一个辅助问题是如何重置一个自动编号以便
序列再次从1开始。

对于这个文件,自动编号字段没有用作
除了作为索引和唯一记录的标识符,所以没问题重新编号
提供的记录不会尝试创建两个相同的数字(在这种情况下,系统会抛出
系统!)。

问候

John Baker



谢谢......很高兴知道我能做到这一点。


有任何编程方式可以重置它吗?我几乎想在每次使用它时重置它!


最好


John
杰夫史密斯 <否*** @ Not.This.Address>写道:

自动编号的最大大小是2,147,483,647,最小的是
是-2,147,483,648。
将其重置为零的一种方法是删除表格中的所有记录然后压缩数据库。

Jeff

" John Baker" <巴****** @ Verizon.net>在消息中写道
新闻:i6 ******************************** @ 4ax.com .. < blockquote class =post_quotes>嗨:

我知道这是一个奇怪的问题,但我继承了一个复制


文件的系统

并且记录经常重新自动编号(作为索引字段)),我


想知道

有多高,这个数字可以在没有系统崩溃的情况下发生。

一个辅助问题是如何重置一个自动编号,以便


序列再次启动

1。

在这种情况下这个文件的自动编号字段没有任何用处


除了作为

索引和唯一记录的标识符,因此重编号没有问题

<记录

提供一个不尝试创建两个相同的数字(在这种情况下


系统引起你们的注意!)。

问候

John Baker




如果你甚至认为你可能想重置它,

不要使用自动编号。

自动编号不是有意义的,只是独一无二的。


" John Baker" <巴****** @ Verizon.net>在消息中写道

news:lt ******************************** @ 4ax.com ...

谢谢..很高兴知道我可以做到这一点。

是否有任何编程方式来重置它?我几乎想在每次使用它时重置它


最佳

John
Jeff Smith <否*** @ Not.This.Address>写道:

自动编号的最大大小是2,147,483,647,最小的是
beis -2,147,483,648。
将其重置为零的一种方法是删除所有表格中的记录
然后压缩数据库。

Jeff

" John Baker" <巴****** @ Verizon.net>在消息中写道
新闻:i6 ******************************** @ 4ax.com .. < blockquote class =post_quotes>嗨:

我知道这是一个奇怪的问题,但我继承了一个复制


文件的系统

并且记录经常重新自动编号(作为索引字段)),我


想知道

有多高,这个数字可以在没有系统崩溃的情况下发生。

一个辅助问题是如何重置一个自动编号,以便


序列再次启动

1。

在这种情况下对于这个文件,自动编号字段没有任何有用的


目的,作为

索引,以及唯一记录的标识符,所以

$ b $没问题b重新编号记录

如果没有尝试创建两个相同的数字(其中


case the system

引起你的注意!)。

关于

John Baker



Hi:

I know this is a strange question, but I have inherited a system where files are copied
and records re auto numbered (as an index field) )frequently, and I am wondering how high
the number can go without the system crashing.

An ancillary question is how one resets an auto number so that the sequence starts again
at 1.

In the case of this file, the auto number field serves no useful purpose except as an
index, and identifier of a unique record, so no problem with renumbering the records
provided one does not try and create two identical numbers (in which case the system
throws up all over you!).

Regards

John Baker

解决方案

Maximum size for an autonumber is 2,147,483,647 and the smallest it can be
is -2,147,483,648.
One way to reset it back to zero is to delete all records in the table and
then compact the database.

Jeff
"John Baker" <Ba******@Verizon.net> wrote in message
news:i6********************************@4ax.com...

Hi:

I know this is a strange question, but I have inherited a system where files are copied and records re auto numbered (as an index field) )frequently, and I am wondering how high the number can go without the system crashing.

An ancillary question is how one resets an auto number so that the sequence starts again at 1.

In the case of this file, the auto number field serves no useful purpose except as an index, and identifier of a unique record, so no problem with renumbering the records provided one does not try and create two identical numbers (in which case the system throws up all over you!).

Regards

John Baker



Thanks.. its good to know I can do that.

Is there any programmatic way to reset it? I would almost like to reset it every time I
use it!

Best

John
"Jeff Smith" <No***@Not.This.Address> wrote:

Maximum size for an autonumber is 2,147,483,647 and the smallest it can be
is -2,147,483,648.
One way to reset it back to zero is to delete all records in the table and
then compact the database.

Jeff
"John Baker" <Ba******@Verizon.net> wrote in message
news:i6********************************@4ax.com.. .

Hi:

I know this is a strange question, but I have inherited a system where


files are copied

and records re auto numbered (as an index field) )frequently, and I am


wondering how high

the number can go without the system crashing.

An ancillary question is how one resets an auto number so that the


sequence starts again

at 1.

In the case of this file, the auto number field serves no useful purpose


except as an

index, and identifier of a unique record, so no problem with renumbering


the records

provided one does not try and create two identical numbers (in which case


the system

throws up all over you!).

Regards

John Baker




If you''re even thinking you might want to reset it,
don''t use an autonumber.
Autonumbers are not meant to be meaningful, just unique.

"John Baker" <Ba******@Verizon.net> wrote in message
news:lt********************************@4ax.com...

Thanks.. its good to know I can do that.

Is there any programmatic way to reset it? I would almost like to reset it every time I use it!

Best

John
"Jeff Smith" <No***@Not.This.Address> wrote:

Maximum size for an autonumber is 2,147,483,647 and the smallest it can beis -2,147,483,648.
One way to reset it back to zero is to delete all records in the table andthen compact the database.

Jeff
"John Baker" <Ba******@Verizon.net> wrote in message
news:i6********************************@4ax.com.. .

Hi:

I know this is a strange question, but I have inherited a system where


files are copied

and records re auto numbered (as an index field) )frequently, and I am


wondering how high

the number can go without the system crashing.

An ancillary question is how one resets an auto number so that the


sequence starts again

at 1.

In the case of this file, the auto number field serves no useful

purposeexcept as an

index, and identifier of a unique record, so no problem with

renumberingthe records

provided one does not try and create two identical numbers (in which

casethe system

throws up all over you!).

Regards

John Baker



这篇关于什么是最大的“自动号码”可以存在于Access数据库中吗?如何重置自动编号从1开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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