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.
Solution:
You are looking for this:
\n\nSELECT tablename,columnname\nFROM dbc.columnsV\nWHERE ColumnName in ('col1', 'col2');\n
nVector
posted onEnjoy 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
Post Comment