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_at_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 - 13:43:24 CET

Original text of this message