PostgreSQL JSONField 값 입력 방법

그냥 텍스트가 아니라 Query Editor 에서 넣으려고 하는데 “” 이렇게 주니깐 에러 발생

::jsonb 라는 키워드를 붙여줘야 한다.

UPDATE django.app_test_data_manager_testlog SET option_field = '{}'::jsonb;

이 예제의 option_field 의 선언은 다음과 같이 되어 있다.

![](assets/images/2023/10/image.png?resize=418%2C50&ssl=1)



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • a post with plotly.js
  • a post with image galleries
  • a post with tabs
  • a post with typograms
  • a post that can be cited