Return values

A common use of a UDR is to return values to the calling SQL statement. A UDR that returns a value is called a user-defined function.

For information about how to specify the data type of the return value of a user-defined function, see Registering a user-defined routine.