2
create table matrices(
matrix text[][] not null);
它的價值:
insert into Matrices values
(array[ ['1','2','3'],
['4','5','6'] ]),
(array[ ['a','b','c'],
['d','e','f'] ]);
我如何編寫SQL移調每個陣列,這樣的結果是這樣的:
matrix
-------------
{{1,4},{2,5},{3,6}}
{{a,d},{b,e},{c,d}}
(2 rows)