Select cols.column_id, cols.column_name as Name, nullable,
 data_type as Type,
 decode(data_type, 'CHAR', char_length,
                   'VARCHAR', char_length,
                   'VARCHAR2', char_length,
                   'NCHAR', char_length,
                   'NVARCHAR', char_length,
                   'NVARCHAR2', char_length,
                   null) nchar_length,
  Decode( data_type, 'NUMBER', data_precision + data_scale, data_length )
Length,
  data_precision Precision, data_scale Scale, data_length dlength,
data_default    ,' ' comments
  ,DATA_TYPE_MOD
  ,cols.CHAR_USED
  ,decode(cols.density, null, 'No', 'Yes') histogram
FROM
  sys.user_tab_columns cols
where 1=1
and cols.table_name = 'ALL_CAMPUSES';

change ALL_CAMPUSES to your view name.



>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to