List of table columns


SELECT owner,table_name, column_name, data_type,
 decode(data_type, 'CHAR', char_length,
 'VARCHAR', char_length,
 'VARCHAR2', char_length,
 'NCHAR', char_length,
 'NVARCHAR', char_length,
 'NVARCHAR2', char_length,
 data_length) data_length,
 data_precision, data_scale, nullable, char_used
 , virtual_column
FROM SYS.ALL_TAB_COLS c
WHERE OWNER='ANAR'
and HIDDEN_COLUMN = 'NO'
and exists (SELECT 'x'
 FROM sys.ALL_ALL_TABLES t
 WHERE t.table_name = c.table_name
 and t.owner = c.owner)
order by owner,table_name, column_id;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: