postgresql 在 pgAdmin 中选择整列内容

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21832460/
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 01:19:10  来源:igfitidea点击:

Select whole column content in pgAdmin

postgresqlpgadmin

提问by Jacek

I use PosgreSQL as database and PgAdmin as tool to manage it. When I write simple select (col is type of text and value of it is quite long, about 4k chars)

我使用 PosgreSQL 作为数据库,使用 PgAdmin 作为管理它的工具。当我写简单的选择时(col 是文本类型,它的值很长,大约 4k 个字符)

SELECT col FROM tab

I get this (there is about 250 chars before brackets):

我明白了(括号前大约有 250 个字符):

abababababa(...)

but I inserted longer value. PgAdmin trim showed value and ends it with(...) string. How can I get whole content inside PgAdmin?

但我插入了更长的值。PgAdmin 修剪显示值并以(...) 字符串结束。如何在 PgAdmin 中获取全部内容?

回答by Atiris

Try set this value in PgAdmin config:

尝试在PgAdmin 配置中设置此值:

File > Options > Query Tool > Max. characters per column

Look on settings on this page

查看此页面上的设置

EDIT:For full column content you have to use -1, if left empty PgAdmin3 automatically replaces it with a 0 and nothing is shown but "...".

编辑:对于您必须使用的完整列内容-1,如果将其留空,PgAdmin3 会自动将其替换为 0,并且除了"...".

回答by Rudi Wijaya

In PgAdmin.. If you want 'unlimited': File -> Options -> Query Tool -> Max. char. per column -> -1

在 PgAdmin.. 如果你想要“无限”:文件 -> 选项 -> 查询工具 -> 最大。字符。每列 -> -1