Pessoal desculpa a ignorância mas é o seguinte , tenho esta função:

CREATE OR REPLACE FUNCTION "public"."processa_trans" (trans varchar []) 
RETURNS boolean AS
$body$
DECLARE
  tam_array int;
BEGIN
  tam_array = array_upper(trans);
  for i in 1..tam_array loop 
     if SUBSTR(TRANS[i],3,3) = 'TIT' then
        execute PROCESSA_TITULAR(TRANS[i]);
     end if;
        
  end loop;
END;
$body$
LANGUAGE 'plpgsql' VOLATILE CALLED ON NULL INPUT SECURITY INVOKER;
Quero passar um array de varchar pra ela, como fica a chamada ?

select processa_trans(...... ?
>   

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a