I have two tables with around thousands of column each.Table contains variant data columns.I want to merge the variant data column based on key value in variant data.
eg:
Table 1 column name: SRC value : {col1:val1,col2:val2,col3:val3}
Table 2: column name: SRC value : {col1:val1,col2:val2,col4:val4}
I want output after merging : Table 1 : SRC = {col1:val1,col2:val2,col3:val3,col4:val4}
I want existing keys in variant column to update and new keys to insert in table.
I have tried it with object_insert()
method but it can update a single field at a time and it is being hard to implement syntactically for thousand of columns.How to achieve this with multiple fields.
Can anyone help me on this?