C Scalar Function | UFC Code Examples | Teradata Vantage - 17.10 - C Scalar Function - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
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.