I don't think this can be done in a single select statement. You could however write a loop in a block like this to achieve a similar effect.
set serveroutput on
declare
outstr varchar2(500);
cursor word_cursor is select name from address_book where rownum < 10;
begin
for c in word_cursor loop
outstr := outstr || c.name || ',';
end loop;
dbms_output.put_line(outst
end;
/
Main Topics
Browse All Topics





by: Bigfam5Posted on 2003-08-27 at 10:39:57ID: 9234232
What version of Oracle are you using?