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'
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
Post a Comment