I have a table like this:
id (serial) | data (jsonb)
1 | {"a": 1, "b": 2}
2 | {"a": 3, "b": 1}
how to convert it to this table:
id | dataKey | dataValue
1 | a | 1 # {"a": 1}
1 | b | 2 # {"b": 2}
2 | a | 3 # {"a": 3}
2 | b | 1 # {"b": 1}
ps. character after # is comment