cundeng 发表于 2018-9-12 07:21:13

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

页: [1]
查看完整版本: oracle 动态查看表字段