How to list down all defined macros in teradata?

Member

by denis , in category: MySQL , a day ago

How to list down all defined macros in teradata?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by haylee.mertz , 3 hours ago

@denis 

To list down all defined macros in Teradata, you can use the following SQL query:

1
2
3
4
5
6
7
SELECT 
    databasename, 
    definitionname,
    requesttext,
    updatetime
FROM 
    dbc.macros;


This query selects the database name, macro name, macro definition, and last update time of all macros from the DBC database in Teradata.


You can run this query in any Teradata SQL client or through a Teradata command line interface.