You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT DISTINCT
jsonb_object_keys(jsonb_array_elements(data::jsonb)) AS key
FROM your_table;
and then explode into multiple rows with
SELECT
original_column_1,
original_column_2,
jsonb_array_elements(data::jsonb) ->> 'col1' AS col1,
jsonb_array_elements(data::jsonb) ->> 'col2' AS col2
FROM your_table;
No description provided.
The text was updated successfully, but these errors were encountered: