|
with ct as
(
select
id, ('{' || index-1 || ',updatedAt}')::text[] as path
from
t,
jsonb_array_elements(data) with ordinality arr(c, index)
)
--select * from ct
--update t
--set data = jsonb_set(data, ct.path, '"1571150000"', false)
--from ct
--where ct.id = t.id;
ERROR: syntax error at end of input
LINE 13: --where ct.id = t.id;
^
ERROR: syntax error at end of input
LINE 13: --where ct.id = t.id;
^
|