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

Home -> Community -> Usenet -> c.d.o.misc -> Re: show the fields of table name in oracle

Re: show the fields of table name in oracle

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Mon, 29 Nov 2004 07:48:30 -0800
Message-ID: <1101743220.462383@yasure>


Matt wrote:
> Given the table name, how to tell the structure of table in oracle?
> For example, I know the table name called Student, but I want to know the
> fields of table student. If I query "Select * from Student;" it only
> displays all records, which I don't want.
>
> Please advise. thanks!!

desc <table_name> ... so for example:
SQL> desc mytable

For a full description if an object table: SQL> set describe depth all linenum on indent on SQL> desc mytable

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Mon Nov 29 2004 - 09:48:30 CST

Original text of this message

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