16.20 - Example: Creating a Java External Stored Procedure Using a Period Data Type - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
This statement creates a Java external stored procedure using the PERIOD data type for:
  • Input parameters P1 and P2
  • Output parameter P3
REPLACE PROCEDURE PDT_UDF(IN P1 PERIOD(DATE), IN P2 PERIOD(DATE), OUT P3 PERIOD(DATE))
       LANGUAGE JAVA
       NO SQL
       PARAMETER STYLE JAVA 
       EXTERNAL NAME 
     	'UDF_JAR:UserDefinedFunctions.pdt_udf';
	
public static void pdt_udf(java.sql.Struct p1, java.sql.Struct p2, java.sql.Struct[] p3) throws SQLException