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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Select count number of 'columns' in a table.

RE: Select count number of 'columns' in a table.

From: <Scott.Shafer_at_dcpds.cpms.osd.mil>
Date: Thu, 5 Aug 2004 13:28:18 -0500
Message-ID: <D5DBDB57DE20D711ABF9000629261E91020CF696@SATXPO1>


select count(*) from dba_tab_cols where table_name = 'TABLE_NAME';

Scott Shafer
San Antonio, TX

-----Original Message-----

From: Lyndon Tiu [mailto:ltiu_at_alumni.sfu.ca]

Is there a sql statement that returns the count of the number of columns a table has? NOT the number of rows but the number of columns.



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html

-----------------------------------------------------------------
Received on Thu Aug 05 2004 - 13:22:33 CDT

Original text of this message

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