查询Oracle 表字段

前端之家收集整理的这篇文章主要介绍了查询Oracle 表字段前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

猜你在找的Oracle相关文章