Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Obtaining column type in OCI8

Reply
Thread Tools

Obtaining column type in OCI8

 
 
Sean Nakasone
Guest
Posts: n/a
 
      11-07-2007
Using the OCI8 module, how does one obtain the type of a column in a
table? For example, how do we know if a column is a VARCHAR or a NUMBER?


 
Reply With Quote
 
 
 
 
KUBO Takehiro
Guest
Posts: n/a
 
      11-11-2007
Hi,

On 11/8/07, Sean Nakasone <> wrote:
> Using the OCI8 module, how does one obtain the type of a column in a
> table? For example, how do we know if a column is a VARCHAR or a NUMBER?


Column types of an existing table, or of a query?
For the former, you can get the column types by querying
USER_TAB_COLUMNS data dictionary.
For the latter, you have no way now. It will be supported at the next release.
http://rubyforge.org/forum/forum.php...&forum_id=1078

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help - obtaining the type of the object usingtp_name Mrinalini Kulkarni Python 0 12-25-2011 11:28 AM
Re: Obtaining Correct Type with usage of ParseControl() bruce barker ASP .Net 0 09-25-2008 04:36 AM
Obtaining class instance of generic quantified type Rakesh Java 4 04-24-2008 07:43 PM
Obtaining column type in Oracle table Sean Nakasone Perl Misc 1 11-08-2007 12:53 PM
Populating 'long' data column with Ruby OCI8 (trying again, need a solution badly) Gennady Bystritsky Ruby 2 01-18-2006 06:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57