ROBLEMMENS
Programmer
hi, im using Delphi6 and Interbase 6, i need a stored procedure that returns more than one row but whenever i try to create the procedure it says token unknown ; ?
This is my procedure:
CREATE PROCEDURE TEST_PROC(DOC_NR INTEGER)
RETURNS
AS
BEGIN
SELECT *
FROM DOCUMENT
WHERE NR = OC_NR;
END!!
i think that isql expects the INTO clausule but i read in the ib documentation that INTO can only be used for a singleton select. How do i make a procedure returning multiple rows? I can't use a query because it would be executed on the client side and we need it to execute on the server.
This is my procedure:
CREATE PROCEDURE TEST_PROC(DOC_NR INTEGER)
RETURNS
AS
BEGIN
SELECT *
FROM DOCUMENT
WHERE NR = OC_NR;
END!!
i think that isql expects the INTO clausule but i read in the ib documentation that INTO can only be used for a singleton select. How do i make a procedure returning multiple rows? I can't use a query because it would be executed on the client side and we need it to execute on the server.