Вопрос

When creating a table in pgAdmin, there are two data types list for most entries, such as the following examples,

character varying, character varying[] or bigint, bigint[].

What is the significance of the data type followed by []?

Это было полезно?

Решение

This means postgresql array type that allows to store multiple values in a single table column. I.e. bigint[] means just array of bigint.

Другие советы

As per this link Postgres Array Types

PostgreSQL allows columns of a table to be defined as variable-length multidimensional arrays.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top