Integer data types
smallint - 2 byte signed integer
- from -32768 to 32767
*signed - support both positive and negative numbers
*unsigned - support only positive numbers
int - 4 byte signed
-214783648 to 214783647 — serial - the same as integer except that PostgreSQL will populate value into the column automatically
- similar to AUTO_INCREMENT in other db management systems
We use cookies to understand our websites traffic and offer our website visitors personalized experience. To find out more, click ‘More Information’. In addition, please, read our
Privacy policy.