Postgresql – Extract part of keys from JSON column
I have this table column: I want the trailing numbers retrieved from the key names and stored in this manner: ID 1 2 3 4 I can retrieve it using: REGEXP_REPLACE((json_each_text(fixtures::json)).key, '.*?(d+)', '1')::int as ID But I want it retrieved…