newline character in SQL

From: Sethi Tarun-ETS017 <Tarun(dot)Sethi(at)motorola(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: newline character in SQL
Date: 2003-03-21 03:16:44
Message-ID: D7A316136BB6D411A777001083FD087106DCFE90@plnt056.comm.mot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

How can I remove the newline character from the value of a column.

For Example:
Select name, comments from table where comment like '%Fine%';
Results:
NAME COMMENTS
John M. This was a
Fine piece of
work.

Above, I'd like the Results to appear:
NAME COMMENTS
John M. This was a Fine piece of work.

I tried substr, instr, hedged right ... but can't get it to work.

Any help will be greatly appreciated.

Regards
TS

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Popeanga Marian 2003-03-21 05:46:01 explain
Previous Message David Witham 2003-03-21 02:52:56 Re: What this parser mean?