我有这样的数据:
Akhound,1,Akhoond,"{""Akhund"", ""Akhwan""}",0
pgAdmin 的导入拒绝了这一点。CSV 中的 text[] 需要采用什么格式?
我也试过这个:
Akhoond,1,Akhoond,"{Akhund, Akhwan}",0
这是表创建:
CREATE TABLE private."Titles"
(
"Abbrev" text NOT NULL,
"LangID" smallint NOT NULL REFERENCES private."Languages" ("LangID"),
"Full" text NOT NULL,
"Alt" text[],
"Affix" bit
)
WITH (
OIDS=FALSE
);
ALTER TABLE private."Titles" ADD PRIMARY KEY ("Abbrev", "LangID");
CREATE INDEX ix_titles_alt ON private."Titles" USING GIN ("Alt");
ALTER TABLE private."Titles"
OWNER TO postgres;