Calling Functions With OUT paramaters

Поиск
Список
Период
Сортировка
От David Greco
Тема Calling Functions With OUT paramaters
Дата
Msg-id CDFA9340E95A764E9366B4EDF3A431250108B64E29F0@VA3DIAXVS091.RED001.local
обсуждение исходный текст
Ответы Re: Calling Functions With OUT paramaters
Список pgsql-general

I have a function definited as such:

 

CREATE OR REPLACE FUNCTION address_pkg.parse_zip(IN cpostal character varying, OUT czip character varying, OUT czip4 character varying) LANGUAGE plpgsql;

 

 

How does one call this from another plpgsql function? Currently, I am using something of the form:

 

SELECT * INTO cZip, cZip4 FROM Address_pkg.Parse_Zip(postal_code);

 

But, I am not a big fan of this. Is there another way?

 

 

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Client encoding not the same as the db encoding
Следующее
От: "McGehee, Robert"
Дата:
Сообщение: Arbitrary and mixed data types in function