C#でnew int[10]のように配列を作成すると、その中身は自動的に「0」で初期化(new string[10]なら「null」で初期化)されます。 しかし、プログラムの要件によっては、「配列の全要素を、0やnull以外の特定の値で埋めたい」という場面がよくあります。 int配列の ...
ARRAY[expr1, expr2, ...] Constructs a SQL ARRAY literal from the provided expression arguments. All arguments must be of the same type. ARRAY_APPEND(arr, expr) Appends the expression to the array. The ...