17.00 - Example: Creating an External Procedure that Can Modify SQL Data Using CLIv2 - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Release Date
September 2020
Content Type
Programming Reference
Publication ID
B035-1144-170K
Language
English (United States)

The following C language external procedure definition creates a procedure named xsp_abc that can modify SQL data using the CLIv2 API:

     CREATE PROCEDURE xsp_abc(IN  param1  INTEGER, 
                              OUT result1 INTEGER)
     LANGUAGE C
     MODIFIES SQL DATA
     PARAMETER STYLE SQL
     EXTERNAL NAME 'SP!CLI!CS!xsp_abc!xsp_abc.c';