설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은
결과보기
EnterpriseDB
총 게시물 95건
목록 글쓰기 이전글 다음글

string 을 json 으로 변환 : to_json 과 ::json 차이

글쓴이 : PostgresDBA   날짜 : 2018-06-14 (목) 14:04   조회 : 13680 인쇄
select to_json('{ "name":"superman"}'::text)
union all
select '{ "name":"superman"}'::text::json

-------------------------------------------
"{ \"name\":\"superman\"}"
{ "name":"superman"}

댓글목록

목록 글쓰기 이전글 다음글

postgresdba.com