dbTalk Databases Forums  

user_tab_columns

comp.databases.oracle comp.databases.oracle


Discuss user_tab_columns in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Greg Bailey
 
Posts: n/a

Default user_tab_columns - 09-13-2004 , 05:30 AM






How do I update the views user_tab_columns and dba_tab_columns?

I am using Oracle 9.

I am trying to use a select command to find out info about the columns
in some tables - their data_type, data_length and whether they are
nullable.

Reply With Quote
  #2  
Old   
Mark C. Stock
 
Posts: n/a

Default Re: user_tab_columns - 09-13-2004 , 07:14 AM







"Greg Bailey" <climbingmercury (AT) yahoo (DOT) co.uk> wrote

Quote:
How do I update the views user_tab_columns and dba_tab_columns?

I am using Oracle 9.

I am trying to use a select command to find out info about the columns
in some tables - their data_type, data_length and whether they are
nullable.
You don't -- the RDBMS does when you issue DDL (data definition language)
statements, like CREATE TABLE, ALTER TABLE, etc.

++ mcs




Reply With Quote
  #3  
Old   
Ed prochak
 
Posts: n/a

Default Re: user_tab_columns - 09-13-2004 , 01:22 PM



climbingmercury (AT) yahoo (DOT) co.uk (Greg Bailey) wrote in message news:<b50df850.0409130230.78e5b8 (AT) posting (DOT) google.com>...
Quote:
How do I update the views user_tab_columns and dba_tab_columns?

I am using Oracle 9.

I am trying to use a select command to find out info about the columns
in some tables - their data_type, data_length and whether they are
nullable.
Hmm. Try rerunning the query?

I assume you mean REFRESHING the data you see versus trying to UPDATE
those views. The data should not change much, so why you'd have
problems seeing the most recent values might be due to something else
(maybe your session privileges).

HTH,
ed


Reply With Quote
  #4  
Old   
Hans Forbrich
 
Posts: n/a

Default Re: user_tab_columns - 09-13-2004 , 01:44 PM



Greg Bailey wrote:

Quote:
How do I update the views user_tab_columns and dba_tab_columns?

I am using Oracle 9.

I am trying to use a select command to find out info about the columns
in some tables - their data_type, data_length and whether they are
nullable.
Based on the wording, you seem to have a misconception about views and/or
the data dictionary. I don't quite understand your problem.

Hopefully you understand the difference between the 'user_' and the 'dba_'
views? (And hopefully you understand what a view actually is!)

/Hans


Reply With Quote
  #5  
Old   
Greg Bailey
 
Posts: n/a

Default Re: user_tab_columns - 09-14-2004 , 03:32 AM



I was misunderstanding some of the values in the view it appears.

I had assumed that data_length was the length of data in the column,
but this doesn't apply to numbers, where data_precision is the field I
want (as far as I can tell).

Thanks
Greg

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.