Application Development Guide


What are Functions and Methods?

A user-defined function is a mechanism with which you can write your own extensions to SQL. The built-in functions supplied with DB2 are a useful set of functions, but they may not satisfy all of your requirements. For a complete list of the functions supplied with DB2, refer to the "Supported Functions" table in the SQL Reference.

Methods, like UDFs, enable you to write your own extensions to SQL by defining the behavior of SQL objects. However, unlike UDFs, you can only associate a method with a structured type stored as a column in a table.

You may need to extend SQL for the following reasons:


[ Top of Page | Previous Page | Next Page ]