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: A query that returns table structure in PL/SQL

Re: A query that returns table structure in PL/SQL

From: Grigor Coric <grigor.coric_at_lijanovici.com>
Date: Mon, 17 Jan 2000 15:52:59 +0100
Message-ID: <85va80$2rv$1@as102.tel.hr>


Try

select * from user_tab_columns
where table_name='your_table_name'

--
Grigor Coric /grigor.coric_at_lijanovici.com/ Zagreb, Croatia

goworej wrote in message ...
>Hi,
>I would like to write a short code in PL/SQL that would return me list of
>column names in a table.
>I know how to find the table name but I know no query that would perform
the
>same action as " desc table_name" in SQL Plus.
>Could you help me?
>Thanks
>Justyna Goworek
>justyna.goworek_at_carligry.com.pl
>
>
Received on Mon Jan 17 2000 - 08:52:59 CST

Original text of this message

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