Would someone please show me how to do insert & update a jsonb column? Say I have this Permanent table that has 2 columns (ticker varchar(10), data(jsonb)), with ticker is the primary key: In it, it has this data
XYZ,{"sales":{"2022-06-30":1500,"2022-03-31":1200}}
Now, a new quarter has been reported and the Temp table has this data:
XYZ,{"sales":{"2022-09-30":1800}}
How can I do INSERT INTO so it update just the data(jsonb)
INSERT INTO perm_table(ticker,data)
FROM temp_table ticker,data
ON CONFLICT ????? DO NOTHING;
Thank you so much in advance for your guidance!