Skip to content

The auto-increment feature for multipart PK #947

Closed
@TarantoolBot

Description

@TarantoolBot

The auto-increment feature can be set to any INTEGER or UNSIGNED
field of PRIMARY KEY using one of two ways:

  1. AUTOINCREMENT in column definition:
    CREATE TABLE t (i INT, a INT AUTOINCREMENT, PRIMARY KEY (i, a));
    CREATE TABLE t (i INT AUTOINCREMENT, a INT, PRIMARY KEY (i, a));
  2. AUTOINCREMENT in PRIMARY KEY definition:
    CREATE TABLE t (i INT, a INT, PRIMARY KEY (i, a AUTOINCREMENT));
    CREATE TABLE t (i INT, a INT, PRIMARY KEY (i AUTOINCREMENT, a));
    Requested by @ImeevMA in tarantool/tarantool@08c7d7c.

Metadata

Metadata

Assignees

Labels

featureA new functionalityserver[area] Task relates to Tarantool's server (core) functionalitysql[location] SQL manual

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions