16.20 - Example: Defining SQL_TEXT and Including sqltypes_td.h - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Advanced SQL Engine
Teradata Database
Release Number
Release Date
April 2020
Content Type
Programming Reference
Publication ID
English (United States)

The following example shows how to define SQL_TEXT and include the sqltypes_td.h header file in the file that defines an external stored procedure:

#define  SQL_TEXT Latin_Text
#include "sqltypes_td.h"

Alternatively, you can use the following line to include the sqltypes_td.h header file:

#include <sqltypes_td.h>

Using angle brackets (< >) or double quotation marks (" ") affects the path that the C preprocessor uses to search for the sqltypes_td.h header file.