If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Hi,
I'm newbie in this informix stuff,
K, the question: how's the most basic for create an store procedure, I mean, how can I do that, an how it can returns a value,
CREATE PROCEDURE my_square (i INT DEFAULT 0) RETURNING INT; {Notifies return of INT value}
DEFINE j INT;
LET j = i * i;
RETURN j; {Returns value of j to calling module}
END PROCEDURE;
You may look at the link below, which points to an official documentation on informix spl in pdf format. The title of the e-book is Informix Guide to SQL and the 8th chapter deals with creating and Using Stored Procedures.