Empty array as PostgreSQL array column default value

前端 未结 2 1792
无人及你
无人及你 2021-02-01 12:13

I have a defined an array field in postgresql 9.4 database:

character varying(64)[]

Can I have an empty array e.g. {} for default value of that

2条回答
  •  梦毁少年i
    2021-02-01 12:45

    I tested both the accepted answer and the one from the comments. They both work.
    I'll graduate the comments to an answer as it's my preferred syntax.

提交回复
热议问题