Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: less expensive way to fetch column names?
Hello,
"NetComrade" <andreyNSPAM_at_bookexchange.net> wrote in message
news:406de334.1231442431_at_localhost...
> is there are a less expensive way to get column names from a table
> then doing
> SELECT LOWER(column_name)
> FROM user_tab_columns
> WHERE table_name ='my_table'
> ORDER BY column_id
> .......
> We use Oracle 8.1.7.4 on Solaris 2.7 boxes
> remove NSPAM to email
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
SQL> set serverout on
SQL> declare
2 l_cur int default dbms_sql.open_cursor; 3 l_desc dbms_sql.desc_tab; 4 l_ncols int;
SQL> VC Received on Fri Apr 02 2004 - 19:17:44 CST
![]() |
![]() |