16.20 - C Scalar Function - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

This example shows the C code for a simple scalar function that finds a specified pattern in a string. The function allows a maximum length of 500 characters for the string and the test pattern. The result is a CHAR value of 'T' for TRUE and 'F' for FALSE.