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