postgresql - Postgres get entire array from multidimensional array -
postgresql - Postgres get entire array from multidimensional array -
i'd following:
create table illustration ( name text, arr text[][]); insert illustration values ( 'aa', '{}'); update illustration set arr = arr || array['header'] name = 'aa'; right here, have arr = [['header']]. can add together array making arr = [['header'], ['another']] calling lastly line above 1 time again 'another' within array constructor. however, i'm looking add together elements inner arrays now. like...
update illustration set version[1] = version[1] || array['more'] name = 'aa' however, postgres throws error, wrong number of subscripts. understand postgres multidimensional arrays must have same dimensions inside, have able add together element inner arrays @ 1 time (probably null) , alter 1 i'm adding to. there way without kind of loop?
postgresql multidimensional-array
Comments
Post a Comment