0
create function teste( teste varchar ) returns setof record AS $$
begin
execute teste;
return ;
end;
$$ language plpgsql;
select teste ('select * from public.opcional ');
This returning me record with nothing as I do to appear all data from the optional table?
Could you explain your problem better? If you only want the data from Table select * from public..
– Marconi
What is the purpose of making a function to execute an SQL?
– Leonel Sanches da Silva