gpt4 book ai didi

postgresql - PGAdmin 编辑数据

转载 作者:行者123 更新时间:2023-11-29 14:18:09 28 4
gpt4 key购买 nike

我是 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;

可能很简单

最佳答案

右键单击您的表格,选择View Data/View All Rows(或其中一种变体)。该窗口将允许您编辑数据。然后按 F6 保存更改(感谢 leverglowh 指出这一点)。

关于postgresql - PGAdmin 编辑数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40808685/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com