Solved

select column_name, data_type from all_tab_cols where table_name

Posted on 2009-05-05
4
1,146 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Read about achieving the basic levels of HRIS security in the workplace.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

821 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