Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
PLKapp — — source: Informix-list mailing list archive (1991-1998)
>From: leone@galactica.it (Angelo PAGOTTO)
>Date: Mon, 05 Feb 1996 19:14:54 GMT
>X-Informix-List-Id: <news.20926>
>
>Hi my name is Angelo
>
>With a little help of other user I have founded how to create a stored
>procedure ( by dbaccess ) but now I have a problem:
>If I make a select that return more rows I recieve a error message.
>Is there anyone that sends me an example of stored procedure that
>return more than one records?
>
>for example I want to create a procedure that retrive orders
>between two date.
>
>Thanks for your answer.
Angelo -
It sounds like you are attempting to do something like:
EXECUTE PROCEDURE proc (d1, d2)INTO :column-list...
which, like a SELECT...INTO... requires that only a singlerow be retrieved. If you have a possibility that more than
one row is returned, you must use a CURSOR, and fetch each
row in a loop until SQLNOTFOUND.
Paul Kapp ----> PLKapp@aol.com -OR- plk@interactive.visa.com
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.