Write UDFs as external functions

You can write the executable code of a UDF in a language other than SQL.

While this method is slightly more cumbersome than an SQL function, it provides the flexibility for you to use whatever language is most effective for you. The executable code can be contained in either a program or service program.

External functions can also be written in Java™.

Related information
Java SQL Routines