--- title: "IntegerSequenceKey" slug: "integersequencekey" updated: 2022-09-26T09:56:01Z published: 2022-09-26T09:56:01Z canonical: "docs.datajet.app/integersequencekey" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # IntegerSequenceKey ## General: IntegerSequenceKey ## Produces a field that is the record number in a table, stored as a continuous integer. ## Purpose Use this function to: - Create a unique primary key on an existing table - Identify and select specific records by number ## Return Value | Property | Value | | --- | --- | | **FieldType** | Integer | | **FieldSize** | Continuous | | **DataType** | Continuous | | **DataSize** | Integer | ```shell Example Return Value: 1.....N where N = number of records in the table. ``` FieldSize and DataSize will depend on the number of records in the table: - IntegerSequenceKey will always be a Continuous DataSize.    See **FieldTypes and DataType** for more information. - IntegerSequenceKey is valid for up to 2 billion records (+- 231 -1).  For tables larger than this, see LongSequenceKey - On tables of less than 1 million rows, DiscreteIntegerSequence can be used to create an indexed key ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/Gen_IntSeqKey_Sample.PNG) ## Parameters | Parameter | JSON | Description | | --- | --- | --- | | **Table** | “targetTable”: “MyTableName” | The target table on which the new field will be created | | **Filter** | “dataset”: {DataSet_JSON} | **NOT USED** | | **Function** | "function":"integersequencekey" | IntegerSequenceKey | ## JSON Sample ```json { "method": "BuildBakedField", "project": "D3", "targetTable": "transactions", "overwrite": true, "name": "IntegerKey", "function": "integersequencekey" } ``` ## Usage Notes IntegerSequenceKey does not support filters. See Also: - Engineering | Expression Field - [LongSequenceKey (General Functions)](/v1/docs/longsequencekey) - [DiscreteIntegerSequence (General Functions)](/v1/docs/discreteintegersequence) - [MakeContinuousKey (General Functions)](/v1/docs/makecontinuouskey) ## Example | Example | Details | | --- | --- | | **Description** | | | **Input** | - Table: = [transactions] - Filter: = [No Filter] - **Function: = IntegerSequenceKey** - Name: =IntegerKey | | **Sample** | ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/Gen_IntSeqKey_Example.png) |