Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


SELECT
users.id AS user_id,
jsonb_extract_path_text (users.jsonb, 'status') AS patron_status,
FROM folio_users.users

The following expression will also get the value for "status":

SELECT
users.id AS user_id,
users.jsonb #>> '{status}" AS patron_status,
FROM folio_users.users


Extracting "Second Level" Data Fields

...