我正在学习如何使用 PostgreSQL,并且我已经在我的表中插入了数据,但是当我单击查看行时我看不到数据。我收到以下错误消息 (2)。
(1)这里是create Table语句
-- Table: "Test2 Schema"."Jobsearch"
-- DROP TABLE "Test2 Schema"."Jobsearch";
CREATE TABLE "Test2 Schema"."Jobsearch"
(
"JobTitle" character varying(30) COLLATE pg_catalog."default",
"Location" character varying(40) COLLATE pg_catalog."default",
"Salary" integer,
"Description" character varying(4000) COLLATE pg_catalog."default",
"Currency" character varying(6) COLLATE pg_catalog."default",
"Duration" character varying COLLATE pg_catalog."default",
"Ref" integer NOT NULL,
CONSTRAINT "Jobsearch_pkey" PRIMARY KEY ("Ref")
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE "Test2 Schema"."Jobsearch"
OWNER to adelton;
(2)这是我尝试查看所有行时收到的错误消息
错误:列“ref”不存在第 2 行:ORDER BY Ref ASC ^ 提示:也许您的意思是引用列“Jobsearch.Ref”。********** 错误 ********** 错误:列“ref”不存在 SQL 状态:42703 提示:也许您的意思是引用列“Jobsearch.Ref”。性格:51
(3)这是我可以使用选择脚本来查看行的选择语句
SELECT "JobTitle", "Location", "Salary", "Description", "Currency", "Duration", "Ref"
FROM "Test2 Schema"."Jobsearch";
当我使用选择脚本时,我可以看到数据。我包含了两个打印屏幕,一个显示选择语句输出,另一个显示带有错误消息的视图行输出。