Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: table/column identifiers
If you do not have dba privs, you can use this.
/***************************************************************** * * desc_tbl.sql - Describe user's tables with comments. * * usage - sqlplus scott/tiger @desc_tbl.sql * * output - desc_tbl.lis (180 col)*
*****************************************************************/
column data_type format a15
column column_name format a25
column comments format a70
column table_name format a23
set linesize 180
set pagesize 6000
set pause off
set term off
break on table_name skip 1 nodup
spool desc_tbl.lis
select tc.table_name
, tc.column_name , tc.nullable , decode (rtrim (tc.data_type),
/****************** end desc_tbl.sql ********************************/
Finnegan Calabro (fcalabro_at_aisvt.bfg.com) wrote:
: Is there a way using either SQL or PHP with Oracle 8 to get all the table : names and column names? Not the actual data in the tables, but the : identifiers for each table and column? Thanks. : Finn
--
While Alcatel may claim ownership of all my ideas (on or off the job),
Alcatel does not claim any responsibility for them. Warranty expired when u
opened this article and I will not be responsible for its contents or use.
Received on Thu Jun 17 1999 - 07:03:29 CDT