The RETURN statement returns a single integer value to the calling environment, causing an immediate exit from the procedure. The RETURN statement takes the form:
RETURN expression |
The value of the supplied expression is returned to the calling environment. To save the return value in a variable, use an extension of the CALL statement:
CREATE VARIABLE returnval INTEGER; returnval = CALL myproc(); |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |