postgresql解析json

フィールド名が winnerorder である json文字列をztbxx で解析すると、文字列の内容は次のようになります。

SELECT (winnerorder::json -> 0)  FROM ztbxx

 

 

SELECT (winnerorder::json -> 0) :: json -> 'entname'  FROM ztbxx

 

おすすめ

転載: blog.csdn.net/weixin_41542329/article/details/127999841