DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 12

Thread: SQL query

Threaded View

  1. #2
    Join Date
    Jan 2002
    Location
    Up s**t creek
    Posts
    1,525
    Adjust you query as follows:

    Code:
    declare
      cursor c1 is select table_name from dba_tables where owner='TROPP' ;
      tname varchar2(30000):= null ;
    begin
      for i in c1
        loop
          tname:= tname||i.table_name||',';
        end loop;
      dbms_output.put_line(tname);
    end;
    However, you will need to put a loop in to keep the output line below 256 characters which is the maximum for dbms_output.put_line

    HTH
    Last edited by jovery; 03-05-2003 at 11:15 AM.
    Jim
    Oracle Certified Professional
    "Build your reputation by helping other people build theirs."

    "Sarcasm may be the lowest form of wit but its still funny"

    Click HERE to vist my website!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width