Topic: SQL*Plus and PL/SQL >> How to find number of columns
|
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: How to find number of columns |
| sri |
Posted: Jan 22, 2008 04:57:43 AM |
Total Post: 13
Joined: Sep, 2007
|
Hi all
can any body give me the query which displays the number of columns presented in a table if we provide tablename
|
|
|
appu |
| Posted: Jan 22, 2008 05:24:14 AM | |
|
Total Post: 2
Joined: Jan, 2008
|
Query:-
select count(column_name) from user_tab_columns where table_name like 'USERPREFERENCE';
Note:- USERPREFERENCE is the table name , should be in capital letters.
|
|
|
|
|
sri |
| Posted: Jan 22, 2008 05:45:28 AM | |
|
Total Post: 13
Joined: Sep, 2007
|
|
|
|
|
| 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 |
| Gopu Gopi | 333 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|