postgresql PgAdmin 4:无法编辑一张表中的行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46148374/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 02:38:14  来源:igfitidea点击:

PgAdmin 4: Cannot edit rows from one table

postgresqlpgadminpgadmin-4

提问by Camilo Ortegón

Something strange is happening with my new created tables in Postgres, I can add data to them, but I cannot use PgAdmin to edit the any row.

我在 Postgres 中新创建的表发生了一些奇怪的事情,我可以向它们添加数据,但我不能使用 PgAdmin 来编辑任何行。

This is my table columns description:

这是我的表列描述:

Table columns

表格列

After executing the query to view all table rows this is what I can see:

执行查询以查看所有表行后,我可以看到:

Right click at the table

在桌子上右击

At the Data Output

在数据输出处

Save button is disabled to update my table rows. But this is happening only with my new created tables, as you can see, I have other tables where I'm able to edit rows, for example at this table of Users:

保存按钮被禁用以更新我的表格行。但这仅发生在我新创建的表中,如您所见,我还有其他表可以编辑行,例如在这个用户表中:

Other table that is able to edit data

其他可以编辑数据的表

回答by Camilo Ortegón

Found the problem! That was happening, because I didn't select any of the columns as 'Primary key':

发现问题了!发生了这种情况,因为我没有选择任何列作为“主键”:

Table columns description updated

表列描述已更新