CREATE/REPLACE MACRO Syntax | Teradata Vantage - 17.10 - CREATE MACRO and REPLACE MACRO Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)
{ CREATE MACRO | CM | REPLACE MACRO } [ database_name. ] macro_name
  [ ( macro_parameter [,...] ) ]
  AS ( [ USING using_modifier ]
       [ LOCKING locking modifier ][...]
       SQL_statement ;
      ) [;]
macro_parameter
parameter_name type_declaration [ type_attribute ]...