Topic: SQL*Plus and PL/SQL >> to count the no. of columns in a table
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: to count the no. of columns in a table |
| MAHESH |
Posted: Mar 17, 2007 02:34:06 AM |
Total Post: 1
Joined: Jan, 2007
|
Hi
Is there a query to count the number of columns in a table. |
|
|
deal |
| Posted: Mar 18, 2007 10:34:24 AM | |
|
Total Post: 21
Joined: Nov, 2006
|
select count(column_name) from user_tab_columns
where table_name='tablename'
|
|
|
|
|
bunty |
| Posted: Apr 13, 2007 09:48:17 AM | |
|
Total Post: 6
Joined: Mar, 2007
|
SELECT COUNT(1) FROM col
where tname = 'EMP'
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Vinoth Kumar | 357 |
| Gopu Gopi | 340 |
| Gitesh Trivedi | 322 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|