thedumbkid
Programmer
Is returns "set" the same as returning a table???
by that I mean, if I have a function that returns "set"
can I do the following?
create function myfunction() returns "set" as '
begin
return [some SELECT statement here];
end;' language 'plpgsql';
if so, can somebody point me to some documentation on how to use this return type? I can't find a good resource for some reason
I know there's "returns setof record" and "returns refcursor"... but I'm hoping that returns "set" can make my life easier
reason I wanna do this is because I have many functions in SQL Server and a lot of them have RETURN TABLE...
by that I mean, if I have a function that returns "set"
can I do the following?
create function myfunction() returns "set" as '
begin
return [some SELECT statement here];
end;' language 'plpgsql';
if so, can somebody point me to some documentation on how to use this return type? I can't find a good resource for some reason
I know there's "returns setof record" and "returns refcursor"... but I'm hoping that returns "set" can make my life easier
reason I wanna do this is because I have many functions in SQL Server and a lot of them have RETURN TABLE...