Monday, March 12, 2012

Listing Database names in Teradata

Hi,

I logged into Teradata today morning only to find out that the database I was using till yesterday has been renamed.. I was not aware of it.. And I didn't have a clue how to find out the database name as I am new to Teradata.. I was browsing on the net to find a query which lists all database names in the Teradata but couldn't find any.. Atlast I got a query which I modified to get the list of database names.. So thought of blogging it just to help people like me.. :)

There is a table in teradata named DBC.TABLES which lists the database names and the table names present in the teradata.The following query helped me as I am aware of the table name.

SELECT * FROM DBC.TABLES where tablename like 'xxx%';

Hope it would help you too..

No comments:

Post a Comment