Re: Wi e kann man newlines in die Ausgabe einfügen

Andreas Kretschmer <[email protected]>
Newsgroups gmane.comp.db.postgresql.german
Message-ID <20120504202643.GA31233@tux>
Andreas Tille <[email protected]> wrote:

> Hallo,
> 
> ich habe ein
> 
> # SELECT 'a' || '\n' || 'b' AS test;
>  test 
> ------
>  a\nb
> 
> versucht, um zwischen die beiden Werte ein Newline einzufügen was
> offensichtlich nicht funktioniert.  Wie macht man das richtig?

test=*# SELECT 'a' || E'\n' || 'b' AS test;
 test
------
 a   +
 b
(1 row)




Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

-- 
Sent via pgsql-de-allgemein mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-de-allgemein
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.