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.
Stefan Moens — — source: Informix-list mailing list archive (1991-1998)
Hy,
Is it possible to assign a column names to the resultset of a SPL (which
returns values) ?
CREATE FUNCTION FuncColumnName()
returning VARCHAR(255);
DEFINE _tabname VARCHAR(255);
FOREACH
SELECT tabname
INTO _tabname
FROM systables
RETURN _tabname WITH RESUME;
END FOREACH;
END FUNCTION;
--------------------
EXECUTE PROCEDURE FuncColumnName();
The name of the result column is (expression) !!! Can I assign an other
column name ??
Regards,
Stefan
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.