17.10 - Resolving Unqualified References - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1184-171K
Language
English (United States)

The default database of the executing user, not the creating user, is used to resolve unqualified references to database objects in a macro data definition statement (DDL). Therefore, object references in a macro data definition statement should be fully qualified in the macro body (see CREATE MACRO and REPLACE MACRO).