TDstats.udfConcat为Teradata自带UDF,定义如下: show function tdstats.udfconcat; REPLACE FUNCTION tdstats.UDFCONCAT (aVarchar ) CHARACTER SET UNICODE) ) CHARACTER SET UNICODE CLASS AGGREGATE () SPECIFIC udfConcat LANGUAGE C NO SQL NO EXTERNAL DATA PARAMETER ST…
/* * chap 02 * ------------------------------------------------- */ create or replace function wordcount(str in varchar2) return pls_integer as words pls_integer :; ); inside_a_word boolean; begin .. loop )) or i > len then if inside_a_word then word…