2016-11-25 185 views
0

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

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; 

这也可能是很简单的你的桌子上

+0

您的意思是您想要编辑PGAdmin用户界面中的数据,还是使用您提交给PGAdmin的查询? –

+0

PGAdmin的用户界面,就像你可以在PHPMyAdmin – Jonnny

回答

3

单击鼠标右键,选择View Data/View All Rows(或变种之一)。该窗口将允许您编辑数据。

+1

我不知道你在那里雇佣了什么巫术,但是谢谢。我可以发誓我做到了 – Jonnny