Oracle Query : To get Column details in all tables of a Database

If we want to check the Datatype of the columnname in each table of the entire Database then we can use this query

select OWNER,TABLE_NAME,COLUMN_NAME,DATA_TYPE,DATA_LENGTH from all_tab_columns where COLUMN_NAME = 'MSC_ID'

This query will give the list of all tables which are having the given column and datatype of that column in those tables .

Comments

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces