V2EX  ›  英汉词典

Auto-increment

发音 Pronunciation

/ˌɔːtoʊ ˈɪŋkrəmənt/

释义 Definition

指在数据库或编程中,某个值(通常是标识符或计数器)每次自动增加一个固定量(通常为1)的机制。广泛用于数据库表中为每一行记录自动生成唯一的编号。

例句 Examples

Every new user gets an auto-increment ID when they register.
每个新用户注册时都会获得一个自动递增的ID。

The database uses an auto-increment primary key to ensure that each record has a unique identifier, even when thousands of entries are inserted simultaneously.
该数据库使用自动递增主键来确保每条记录都有唯一的标识符,即使同时插入数千条数据也不会冲突。

词源 Etymology

由 **auto-**(源自希腊语 autos,意为"自己的、自动的")和 increment(源自拉丁语 incrementum,意为"增长、增加",词根为 increscere,即"增长")组合而成。该术语随着关系型数据库的发展在20世纪后半叶被广泛使用,用于描述系统自动为字段赋予递增数值的功能。

相关词汇 Related Words

文学与技术文献引用 Notable References

  • MySQL 官方文档中,AUTO_INCREMENT 是定义自增列的关键属性,被广泛引用于数据库教学材料中。
  • C.J. Date 所著 An Introduction to Database Systems 中讨论了主键生成策略,其中涉及 auto-increment 的概念。
  • Martin Fowler 在 Patterns of Enterprise Application Architecture 中提及了 identity field 模式,与 auto-increment 密切相关。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5402 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 9ms · UTC 03:44 · PVG 11:44 · LAX 20:44 · JFK 23:44
♥ Do have faith in what you're doing.