CREATE PROCEDURE INSERT_PAYITEMS (
STATECODE STATECODE,
ITEMCODE MEDIUMTEXT,
DESCRIPTION LONGTEXT,
UNITS UNITS)
RETURNS (PAYITEM_ID ID)
AS
BEGIN
INSERT INTO PAYITEMS (
STATECODE,
ITEMCODE,
DESCRIPTION,
UNITS)
VALUES (
:STATECODE,
:ITEMCODE,
:DESCRIPTION,
:UNITS)
RETURNING ID INTO :PAYITEM_ID; -- here
SUSPEND; -- here
END^
SET TERM ; ^
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/3a65a3a3-177d-4d95-9dd8-3e31050b63fan%40googlegroups.com.