Pergunta

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 []?

Foi útil?

Solução

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

Outras dicas

As per this link Postgres Array Types

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top