설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 94건, 최근 0 건
   

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

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

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

   

postgresdba.com