how to increase sqlplus column output length?

后端 未结 10 2153
萌比男神i
萌比男神i 2021-01-30 12:45

I have some queries to find out the ddl of some objects from a schema. The result columns I am getting are truncated in the middle of the queries.

How can I increase the

10条回答
  •  自闭症患者
    2021-01-30 13:20

    None of these suggestions were working for me. I finally found something else I could do - dbms_output.put_line. For example:

    SET SERVEROUTPUT ON
    begin
    for i in (select dbms_metadata.get_ddl('INDEX', index_name, owner) as ddl from all_indexes where owner = 'MYUSER') loop
      dbms_output.put_line(i.ddl);
    end loop;
    end;
    /
    

    Boom. It printed out everything I wanted - no truncating or anything like that. And that works straight in sqlplus - no need to put it in a separate file or anything.

提交回复
热议问题