Through pgAdmin 4 there is a table of posts. Accordingly, the content of the post is recorded in one of the columns. When extracting and displaying an element on a page, all translations to a new line are ignored and all individual items are glued together into one continuous unreadable text. How can this be corrected so that the footnotes are not lost? Is there a special syntax for postgres line breaks?
1 answer
This can be done using the escape sequence:
SELECT STRING_AGG(t.param, E'\n') params ... Grouped columns will be glued together with a line break.
See here for details: https://www.postgresql.org/docs/9.3/static/sql-syntax-lexical.html (p. 4.1.2.2. String Constants with C-style Escapes).
|
<br>tag. - nörbörnën pm