Select ROWNUM,T.*
From ( column_name,
Case
When data_type = 'NUMBER'Then
data_type || '(' || nvl(to_char(data_precision),'*') || ',' ||
(to_char(data_scale),255);font-size:2px;">0')'
data_type In'VARCHAR2''CHAR') || to_char(CHAR_LENGTH) || Else
DATA_TYPE
EndAs DATA_TYPE,128);font-size:2px;">decode(NULLABLE,255);font-size:2px;">'Y''N' Mandatory,128);font-size:2px;"> data_type AS data_type1,128);font-size:2px;">
char_length,
data_precision,
data_scale
user_tab_columns c
Where table_name = 'CIS_1WMP_ASM_ADDR_UM_RN'
OrderBy c.COLUMN_ID) T
;
原文链接:https://www.f2er.com/oracle/209262.html