16.20 - SQL Definition - 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)
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;