oracle 动态查看表字段

select a.COLUMN_NAME || '(' || a.data_type || ')'as data_type,

       t.comments|| '(' || a.COLUMN_NAME || ')'as filed

  from user_col_comments t,user_tab_columns a

 where t.table_name = upper('owt_blocdel')

   and t.table_name =a.TABLE_NAME

   and t.column_name =a.COLUMN_NAME

 orderby column_id 


你可能感兴趣的:(oracle,动态查看表字段)