Search Postgresql Archives

Re: Getting json-value as varchar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday, January 6, 2022, Andreas Joseph Krogh <andreas@xxxxxxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux