17.00 - MINVALUE - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Release Date
September 2020
Content Type
Programming Reference
Publication ID
B035-1144-170K
Language
English (United States)
NO MINVALUE
Minimum value to which a system-generated numeric series can decrement.
The value can be any whole number with an absolute value less than the value specified for START WITH.
The default is the minimum number for the data type defined for the column.
When cycling is not enabled, the sum of the specified values for START WITH and INCREMENT BY must be greater than MINVALUE. If they are not, then the system generates only one number before the minimum limit is exceeded.
  • If you specify a positive INCREMENT BY value with CYCLE, renumbering begins from MINVALUE when MAXVALUE is reached.
  • If you specify a negative INCREMENT BY value, then MINVALUE, if specified, must be a whole number such that MINVALUE ≤ START WITH.
MINVALUE also cannot be smaller than the minimum value for the data type assigned to the identity column.
  • If you specify NO CYCLE, then MINVALUE is not applicable for positive increments.
No warning or error is returned if you specify a MINVALUE with NO CYCLE.