Chapter 3. Using DB2 Functions

 <  Day Day Up  >  

IN THIS CHAPTER

  • Column Functions

  • Scalar Functions

  • The RAISE_ERROR Function

  • MQSeries Built-in Functions

  • XML Publishing Built-in Functions

  • Built-in Function Guidelines

Two types of built-in functions can be applied to data in a DB2 table using SQL: column functions and scalar functions . You can use these functions to further simplify the requirements of complex data access.

NOTE

DB2 also provides the capability for users to create their own functions. This capability, called user -defined functions, is discussed in-depth in Chapter 4, "Using DB2 User-Defined Functions and Data Types."


Functions are called by specifying the function name and any required operands. A built-in function can be used any place an expression can be used (with some exceptions).

 <  Day Day Up  >  


DB2 Developers Guide
DB2 Developers Guide (5th Edition)
ISBN: 0672326132
EAN: 2147483647
Year: 2004
Pages: 388

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net