MINVALUE - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™
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.