我有一个脚本 check_table.sql:
set verify off
set trimout off
rem set wrap off
set linesize 200
select table_name, column_name, data_type, data_length from dba_tab_columns where table_name IN '&1' and owner in 'SOMEUSER';
quit;
输出宽度很长:
TABLE_NAME COLUMN_NAME DATA_TYPE DATA_LENGTH
------------------------------ ------------------------------ ---------------------------------------------------------------------------------------------------------- -----------
ABCPROC PROC_ID NUMBER 22
ABCPROC PROC_NAME VARCHAR2 200
ABCPROC PROC_USER NUMBER 22
如何在不截断输出中的整行的情况下对DATA_TYPE列进行分区?
答案 0 :(得分:1)
只需格式化输出,例如
COL DATA_TYPE FORMAT A10
http://docs.oracle.com/cd/A87860_01/doc/server.817/a82950/ch4.htm