Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Can a do a "DESCRIBE <tablename>" from OCI?

Re: Can a do a "DESCRIBE <tablename>" from OCI?

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Tue, 07 Dec 2004 08:48:05 -0800
Message-ID: <1102437981.233985@yasure>


Ramon F Herrera wrote:
> I am writing a program whose purpose is to create .dat
> files which are going to be used later by SQL*Loader.
>
> I would like my program to find out in real time whether
> any of the fields that are going to be inserted in the
> table are too wide.
>
> Therefore, I would like to have my OCI program connect to
> the database an perform some sort of "DESC tablename"
> command or equivalent. Perhaps I should perform a
> SELECT FROM USER_TABLES?
>
> TIA,
>
> -Ramon F Herrera

SELECT from user_tab_columns.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Tue Dec 07 2004 - 10:48:05 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US