jakobens
May 13th, 2006, 06:54 AM
hi everyone..
i am using Mimer and have a database with table lets say A..
i want to write a funtion to insert valuesinto table A.
i have som syntax problems and stucked..
i tried :
@
CREATE FUNCTION addelemnt (x INTEGER, y VARCHAR(20))
RETURNS ???? //i just insert element, what should it return
BEGIN
INSERT INTO A VALUES(x,y)
RETURN ??
END
@
doesnt works..
what should the return values be..
any idea will be appreciated..
thnk you all...
i am using Mimer and have a database with table lets say A..
i want to write a funtion to insert valuesinto table A.
i have som syntax problems and stucked..
i tried :
@
CREATE FUNCTION addelemnt (x INTEGER, y VARCHAR(20))
RETURNS ???? //i just insert element, what should it return
BEGIN
INSERT INTO A VALUES(x,y)
RETURN ??
END
@
doesnt works..
what should the return values be..
any idea will be appreciated..
thnk you all...