Solved

select column_name, data_type from all_tab_cols where table_name

Posted on 2009-05-05
4
1,150 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

734 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