查询A表,B字段的类型,长度
select
A.column_name ,A.data_type ,A.data_length ,A.data_precision ,
A.Data_Scale ,A.nullable ,A.Data_default ,B.comments
from
user_tab_columns A,user_col_comments B
where
A.Table_Name = B.Table_Name
and A.Column_Name = B.Column_Name
and A.Table_Name IN ('A')
and A.Column_Name = 'B'