PGAdmin编辑数据

时间:2016-11-25 15:57:53

标签: postgresql pgadmin

我是Postgres的新手,似乎无法编辑表格中的数据。弹出测试框,但不允许我更改文本。这个初始表没有任何PK或SERIAL。所以我添加了它们,我的表定义现在是这样的:

CREATE TABLE public.weather
(
city character varying(80) COLLATE pg_catalog."default",
temp_lo integer,
temp_hi integer,
prcp real,
date date,
id integer NOT NULL DEFAULT nextval('weather_id_seq'::regclass),
CONSTRAINT weather_pkey PRIMARY KEY (id)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;

ALTER TABLE public.weather
OWNER to postgres;

这可能非常简单

2 个答案:

答案 0 :(得分:3)

右键单击表格,选择View Data/View All Rows(或其中一个变体)。该窗口将允许您编辑数据。

答案 1 :(得分:3)

右键单击您的表格,选择 View/Edit Data -> All Rows

enter image description here

然后在顶部栏中有一个图标,看起来像一个带有向下箭头的表格(下图右侧的图标):

The icon on the right in the picture.

图标是灰色的,但仍然有效。