Inserting CR/LF in a select?

Started by Bjørn T Johansenover 22 years ago3 messagesgeneral
Jump to latest
#1Bjørn T Johansen
btj@havleik.no

I need to get two fields from two tables and append them into one field
with CR/LF in between, how is this done using a select?

Regards,

BTJ

--
-----------------------------------------------------------------------------------------------
Bj�rn T Johansen (BSc,MNIF)
Executive Manager
btj@havleik.no Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91 N-1338 Sandvika
Cellular : +47 926 93 298 http://www.havleik.no
-----------------------------------------------------------------------------------------------
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."
-----------------------------------------------------------------------------------------------

#2David Olbersen
DOlbersen@stbernard.com
In reply to: Bjørn T Johansen (#1)
Re: Inserting CR/LF in a select?

Bjørn T Johansen muttered:

I need to get two fields from two tables and append them into one field
with CR/LF in between, how is this done using a select?

I believe something along the lines of:

SELECT column1||'\r\n'||column1 FROM table;

will do the trick.

--
David Olbersen
iGuard Engineer
St. Bernard Software
11415 West Bernardo Court
San Diego, CA 92127

#3Bjørn T Johansen
btj@havleik.no
In reply to: David Olbersen (#2)
Re: Inserting CR/LF in a select?

Of course it will.... Thanks... :)

BTJ

Show quoted text

On Fri, 2003-08-22 at 19:47, David Olbersen wrote:

Bj�rn T Johansen muttered:

I need to get two fields from two tables and append them into one field
with CR/LF in between, how is this done using a select?

I believe something along the lines of:

SELECT column1||'\r\n'||column1 FROM table;

will do the trick.