PostgreSQL rename attribute in jsonb field

后端 未结 3 959
野性不改
野性不改 2020-11-30 03:39

In postgresql 9.5, is there a way to rename an attribute in a jsonb field?

For example:

{ \"nme\" : \"test\" }

should be renamed t

3条回答
  •  半阙折子戏
    2020-11-30 04:33

    My variable type is json. When i changed it with jsonb, i cant do it, because it depends on to view. Anyway, i fixed it with column_name::jsonb. I wanted to share with people who meet like this problems. Also thanks @klin

提交回复
热议问题