Re: Function .. AS..?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Function .. AS..?
Дата
Msg-id 20050209220435.D62999@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Function .. AS..?  ("Ing. Jhon Carrillo" <jdigital@cantv.net>)
Список pgsql-hackers
On Wed, 9 Feb 2005, Ing. Jhon Carrillo wrote:

> Those instructions are good but i want to call this function only for "
> select consulta_contacto(1)"  nothing more, Is really necesary to use
> "AS ..."?

If it absolutely needs to be setof record, yes.

It may be more appropriate to make a composite type with CREATE TYPE AS
and then make the function return SETOF <newtypename> instead.


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

Предыдущее
От: "Ing. Jhon Carrillo"
Дата:
Сообщение: Function .. AS..?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: [SQL] Function .. AS..?