How to find out the tables with specific column names in them in Teradata?
Scenario: We have column names that we want to look up in the entire DB and list out all tables which have those columns.
You are looking for this:
SELECT tablename,columnname FROM dbc.columnsV WHERE ColumnName in ('col1', 'col2');
Enjoy great content like this and a lot more !
Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds