Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: show the fields of table name in oracle
Dan,
Why are you answering what is so obviously a homework question?
"DA Morgan" <damorgan_at_x.washington.edu> wrote in message
news:1101743220.462383_at_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 - 11:59:19 CST