Returning empty table

0
create function teste( teste varchar ) returns setof record AS $$
begin

    execute teste;
    return ;
end;
$$ language plpgsql;

select teste ('select * from public.opcional  ');

Is this returning me a record with nothing like how do I display all the data in the optional table?

    
asked by anonymous 07.05.2015 / 22:10

0 answers