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

Home -> Community -> Usenet -> comp.databases.oracle -> Suppressing newline during a SELECT returning multiple rows

Suppressing newline during a SELECT returning multiple rows

From: Shuaib <srabbani_at_yahoo.com>
Date: 4 Feb 2004 04:43:24 -0800
Message-ID: <124b8f0d.0402040443.5710f8f0@posting.google.com>

Is there any way for Oracle (using standard SQL rather than PL/SQL) to suppress the newline character when returning a list of rows.

For example, if I have a table EMP with several records. When I issue the statement:

    SELECT name FROM emp

I would like to get a single row output back comprising the following:

  "john, james, jenny, jill, benny"

in other words, all names separated by the a comma followed by space.

Many thanks in advance for you help.

Shuaib Received on Wed Feb 04 2004 - 06:43:24 CST

Original text of this message

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