我正在尝试通过 PgAdmin 实用程序执行以下查询。
CREATE TABLE svcr."EventLogs" ("eventId" BIGINT NOT NULL,
"eventTime" TIMESTAMP WITH TIME ZONE NOT NULL, "userid" CITEXT,
"realmid" CITEXT NOT NULL, "onUserid" CITEXT, "description" TEXT,
CONSTRAINT eventlogs_pkey PRIMARY KEY ("eventId"));
我得到以下错误 -
ERROR: type "citext" does not exist
SQL state: 42704
Character: 120
但是,以下查询运行良好 -
CREATE TABLE svcr."CategoryMap" ("category" INT NOT NULL,
"userData" INT NOT NULL);
第一个查询有什么问题?