我不知道如何更新 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)