Hello, pgsql-hackers

Can I change postgresql's source to make the following plpgsql works ?
If could, would you please tell me where can i change the source?
I want to try it.

-------------------------------------------------------
CREATE FUNCTION users_select_by_id(@id int4)
RETURNS SETOF users_set
AS '

declare rec record;

begin

        for rec in
                select * from users where id = @id
        loop
                return next rec;
        end loop;
        return;

end; 'LANGUAGE plpgsql;
-------------------------------------------------------


Thanks & Regards

Arnold.Zhu
2000-11-23





---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to