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.
i am told stored procedures can now return named columns instead of it
just being titled "expression". what is the syntax for doing so?
thanks
↪ replying to tomL
Art S. Kagel — — source: Usenet: comp.databases.informix
On Thu, 22 Jan 2004 10:00:59 -0500, tomL wrote:
> i am told stored procedures can now return named columns instead of it just
> being titled "expression". what is the syntax for doing so? thanks
Add 'AS name' clause to each return variable in the RETURNING clause of the
CREATE PROCEDURE/FUNCTION statement:
CREATE FUNCTION freddy ( input INT )
RETURNING INT AS barney;
....
END FUNCTION
Art S. Kagel
Your privacy choices
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.