Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Whitespace question

Re: Whitespace question

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Mon, 10 Jun 2002 15:59:30 GMT
Message-ID: <3D04CCDE.B9CA5BB2@exesolutions.com>


Syltrem wrote:

> Good morning everyone!
>
> I've been researching for :
> a) a function that converts multiple spaces or tabs to a single space in a
> string
> b) a way to suppress blank lines from the output of a SELECT in SQL*Plus
>
> For b) here's an example
> set linesize 80
> column a format a80
> column b format a80
> select 'xxx' a, ' ' b from dual;
>
> Since b is empty, a blank line is displayed. I would like to know if there's
> any way to avoid printing blank lines. The thing is (in real life) b is
> almost always empty so the reports looks like double-spaced.
>
> Merci beaucoup!
>
> --
>
> Syltrem
> http://pages.infinit.net/syltrem (OpenVMS related web site - en français)
> To reply to myself directly, remove .spammenot from my address

I'm tempted to say:

SELECT 'xxx' a, ' ' b
FROM dual
WHERE b IS NOT NULL

but that seems so obvious that I wonder if I have misunderstood your question.

Daniel Morgan Received on Mon Jun 10 2002 - 10:59:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US