小编Seb*_*mps的帖子

更新 json 数据类型中的 json 元素

我不知道如何更新 PostgreSQL 9.3 数据类型中的元素。

我的例子:

CREATE TABLE "user"
(
  id uuid NOT NULL,
  password character varying(255),
  profiles json,
  gender integer NOT NULL DEFAULT 0,
  created timestamp with time zone,
  connected timestamp with time zone,
  modified timestamp with time zone,
  active integer NOT NULL DEFAULT 1,
  settings json,
  seo character varying(255) NOT NULL,
  CONSTRAINT id_1 PRIMARY KEY (id)
)
WITH (
  OIDS=TRUE
);
ALTER TABLE "user"
  OWNER TO postgres;
Run Code Online (Sandbox Code Playgroud)

“配置文件”中的 json 部分

CREATE TABLE "user"
(
  id uuid NOT NULL,
  password …
Run Code Online (Sandbox Code Playgroud)

postgresql update postgresql-9.3 json

17
推荐指数
3
解决办法
6万
查看次数

标签 统计

json ×1

postgresql ×1

postgresql-9.3 ×1

update ×1