|
The database server provides special SQL-invoked functions, called built-in functions, that provide some basic mathematical operations.
Figure 6-4 shows the built-in functions that you can overload.
Figure 6-4
The following table lists the built-in functions that you cannot overload.
| cardinality() | day() | month() | user |
| current | dbinfo() | sitename | weekday() |
| date() | dbservername | today | year() |
| datetime() | mdy() | trim() |
Tip: Technically, CURRENT, DBSERVERNAME, SITENAME, TODAY, and USER, are not built-in functions, but built-in macros. You can register overloaded routines by those names, but you cannot use them in SQL statements.
The following table lists the built-in functions for the Optical Subsystem that you cannot overload.
The database server provides versions of the built-in functions that handle the built-in data types. You can write a new version of a built-in function to allow the function to operate on your new opaque data type. If you write a new version of a built-in function, follow these rules:
For more information on the built-in functions, see the Expression segment in the Informix Guide to SQL: Syntax.