Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

select column_name, data_type from all_tab_cols where table_name

Posted on 2009-05-05
4
Medium Priority
?
1,176 Views
Last Modified: 2012-05-06
Hi all,
         I ran this query " select column_name, data_type from all_tab_cols where table_name = 'DIF_OWNER.DIF_SEC_IMPORT_CREDIT' " inorder to get the column name of the particular table, but i am getting empty result. am I missing something.
0
Comment
Question by:balatrue
  • 2
3 Comments
 
LVL 14

Expert Comment

by:ajexpert
ID: 24308119
You should try


SELECT COLUMN_NAME, DATA_TYPE
FROM ALL_TAB_COLUMNS
WHERE TABLE_NAME = 'DIF_SEC_IMPORT_CREDIT'
AND OWNER = 'DIF_OWNER'

Open in new window

0
 
LVL 14

Accepted Solution

by:
ajexpert earned 2000 total points
ID: 24308193
This will also work


SELECT COLUMN_NAME, DATA_TYPE
FROM ALL_TAB_COLS
WHERE TABLE_NAME = 'DIF_SEC_IMPORT_CREDIT'
AND OWNER = 'DIF_OWNER'

Open in new window

0
 

Author Comment

by:balatrue
ID: 24309990
thanks aj , I will try this and let you know.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
This video shows how to recover a database from a user managed backup
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question