[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Obtaining column type in OCI8

sean_n

11/7/2007 9:46:00 PM

1 Answer

KUBO Takehiro

11/11/2007 3:34:00 AM

0

Hi,

On 11/8/07, Sean Nakasone <seannakasone@yahoo.com> 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?thread_id=17986&for...