Creating User-Defined Functions

You use the CREATE FUNCTION statement to create user-defined functions. However, you must have RESOURCE authority.

See SQL Anywhere 11.0.1 > SQL Anywhere Server - SQL Usage > Stored Procedures and Triggers > Using procedures, triggers, and batches > Introduction to user-defined functions > Creating user-defined functions.

For a complete description of the CREATE FUNCTION syntax, including performance considerations and differences between SQL Anywhere and IQ, see Reference: Statements and Options > SQL Statements > CREATE FUNCTION Statement.