Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要用 m 行和 n 列初始化二维数组,但m可能n会改变。我在这里找到了这样的例子:
m
n
ARRAY[[NULL,NULL],[NULL,NULL]]
但它用 2 行和 2 列初始化数组。
我找到了答案:
array_fill(0,ARRAY[m,n])