Re: Create Stored Procedures
Posted in 1998
mallow@my-dejanews.com wrote:
>
> hi there, i need to create stored procedures in informix sql editor? however
> i think the syntax for the sql statements for informix is different, i've
> been getting a sysntax error for something like this: create procedure
> proc_one (p_startdate date, p_enddate date) as begin < my codes> end;
Check out the online manuals at //www.informix.com/answers and get to
the SQL Syntax manual. Look at the generic syntax chart for the
CREATE PROCEDURE statement then there is a section at the back withSPL (Informix Stored Procedure Language) statements and syntax.
Basically the "as begin" phrase is not part of the syntax and the "end"
statement should be "end procedure" and a "returning" clause,
describing the types of any returned values, follows immediately after
the argument list.
Art S. Kagel