Chapter 3 DBMS Reference Guide


CustomFunc

Statement for creating a function.

User-defined functions are a form of procedure that returns a value to the calling environment for use in queries and other SQL statements.

Example

In Sybase Adaptive Server Anywhere 6:

create function %FUNC% (<arg> <type>) 
RETURNS <type>
begin
.
.
.
end
/

 


Copyright (C) 2005. Sybase Inc. All rights reserved.