问题
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)
SELECT col FROM tab
I get this (there is about 250 chars before brackets):
abababababa(...)
but I inserted longer value. PgAdmin trim showed value and ends it with(...) string. How can I get whole content inside PgAdmin?
回答1:
Try set this value in PgAdmin config:
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 "..."
.
回答2:
In PgAdmin.. If you want 'unlimited': File -> Options -> Query Tool -> Max. char. per column -> -1
来源:https://stackoverflow.com/questions/21832460/select-whole-column-content-in-pgadmin