Re: Execute a function?

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Execute a function?
Дата
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E472BB40@ratbert.vale-housing.co.uk
обсуждение исходный текст
Ответ на Execute a function?  ("Steve - DND" <postgres@digitalnothing.com>)
Список pgadmin-support

> -----Original Message-----
> From: pgadmin-support-owner@postgresql.org
> [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Steve - DND
> Sent: 15 March 2005 05:55
> To: Mark A. Taff; pgadmin-support@postgresql.org
> Subject: Re: [pgadmin-support] Execute a function?
>
> > Been a _very_long while, but try:
> >
> > SELECT my_function(param_1, param_2) As Answer;
>
> Yep, that did it. I'm such a newb with PG, still trying
> everything the MSSQL
> way first. Is that the proper way to do it even if you have a
> function that
> returns void?

Yeah, though you'd omit the 'As Answer' (which will fold to lower case
without quotes btw). That bit just gives the resulting column an alias.

Regards, Dave


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

Предыдущее
От: Sim Zacks
Дата:
Сообщение: Re: Execute a function?
Следующее
От: "Igor Katrayev"
Дата:
Сообщение: pgAdmin III v 1.2.0 (Nov 29 2004) bug. New table dialog does not save comments for columns