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

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

The following example shows how to define SQL_TEXT and include the sqltypes_td.h header file in the file that defines a UDF:

#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.