here is a good news for the guys who's poor at c or java, like me
at past, when talked about UDF in Teradata , the only choice is C or Java.
since Teradata 13.10, a new feature is supported:SQL UDF
sample:
CREATE FUNCTION test.MyUDF2 (d INT, e INT, f INT)
RETURNS INT
LANGUAGE SQL
CONTAINS SQL
DETERMINISTIC
COLLATION INVOKER
INLINE TYPE 1
RETURN d + e + f;
No comments:
Post a Comment