Re: Getting json-value as varchar

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Getting json-value as varchar
Дата
Msg-id CAKFQuwaRcrLBOMEb7ZNmW9_GCGARODRRtN3oOPMYLCex5MnT5g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Getting json-value as varchar  (Andreas Joseph Krogh <andreas@visena.com>)
Ответы Re: Getting json-value as varchar
Список pgsql-general
On Thursday, January 6, 2022, Andreas Joseph Krogh <andreas@visena.com> wrote:

Apparently I'm after a solution which either casts this to varchar or a function that takes JSONB as argument and outputs the first field-value as varchar.
 

You can try casting the value though IIRC it doesn’t actually work (limitation of the feature).  The fact is that the ‘ - - > ‘ operator gives you the needed output.

David J.

В списке pgsql-general по дате отправления: