17.10 - SQL Definition - 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)
CREATE AUTHORIZATION mail_token
AS DEFINER DEFAULT
   USER 'mailmgr'
   PASSWORD 'secret';

REPLACE PROCEDURE tdmail(in From_ VARCHAR(100),
                         in To_ VARCHAR(100),
                         in Subject VARCHAR(200),
                         in Message VARCHAR(32000))
   LANGUAGE C
   NO SQL
   PARAMETER STYLE SQL
EXTERNAL name 'CS!tdmail!tdmail.c'
EXTERNAL SECURITY DEFINER;