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.
Erhard Schwenk — — source: Informix-list mailing list archive (1991-1998)
Hello,
Is there any possibility to generate a stored procedure which takes a
table as one of its parameters?
e.g. I need something like this:
CREATE PROCEDURE next_indexvalue(mytable TABLE) RETURNING INTEGER; DEFINE result INTEGER
select max(mytable.indexcolumn)+1 INTO result from mytable
RETURN result
END PROCEDURE
DOCUMENT 'This Procedure returns the next free Index Value for a given
Table'
How can I implement this?
Thank you,
Erhard Schwenk
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.