IT/Postgresql DBMS
Postgresql jsonb_pretty 설명 : 포스트그레스큐엘 함수
WorldSeeker
2021. 5. 1. 14:23
1. 함수의 목적

Postgresql jsonb_pretty 함수는 json에 관련된 함수로서, 입력된 jsonb를 들여쓰기(indent) 정렬 변환하여 반환한다.
2. 샘플을 통한 개념 퀵뷰
SELECT jsonb_pretty('[{"f1":1,"f2":null}, 2]') ;
jsonb_pretty
------------
[
{
"f1": 1,
"f2": null
},
2
]
3. 사용방법
jsonb_pretty ( jsonb )
4. 함수 PARAMETER 설명
[jsonb]
정렬변환할 jsonb를 입력한다.
5. 다양한 샘플 표현
▶▶ Posgresql 내장함수 모음 : atotw.tistory.com/category/IT/Postgresql%20DBMS