pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sethi Tarun-ETS017 <Tarun.Sethi@motorola.com>
To: pgsql-sql@postgresql.org
Subject: newline character in SQL
Date: Thu, 20 Mar 2003 22:16:44 -0500
Message-ID: <D7A316136BB6D411A777001083FD087106DCFE90@plnt056.comm.mot.com> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <D7A316136BB6D411A777001083FD087106DCFE90@plnt056.comm.mot.com>
Permalink:  ../D7A316136BB6D411A777001083FD087106DCFE90@plnt056.comm.mot.com/
Also on:    postgresql.org/message-id/D7A316136BB6D411A777001083FD087106DCFE90@plnt056.comm.mot.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: Tarun.Sethi@motorola.com
  Subject: Re: newline character in SQL
  In-Reply-To: <D7A316136BB6D411A777001083FD087106DCFE90@plnt056.comm.mot.com>
  References: <D7A316136BB6D411A777001083FD087106DCFE90@plnt056.comm.mot.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox