/ˌɔːtoʊ ˈɪŋkrəmənt/
指在数据库或编程中,某个值(通常是标识符或计数器)每次自动增加一个固定量(通常为1)的机制。广泛用于数据库表中为每一行记录自动生成唯一的编号。
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.
该数据库使用自动递增主键来确保每条记录都有唯一的标识符,即使同时插入数千条数据也不会冲突。
由 **auto-**(源自希腊语 autos,意为"自己的、自动的")和 increment(源自拉丁语 incrementum,意为"增长、增加",词根为 increscere,即"增长")组合而成。该术语随着关系型数据库的发展在20世纪后半叶被广泛使用,用于描述系统自动为字段赋予递增数值的功能。
AUTO_INCREMENT 是定义自增列的关键属性,被广泛引用于数据库教学材料中。