Re: Can we use sql language to create a function in Postgres?

Поиск
Список
Период
Сортировка
От Ray O'Donnell
Тема Re: Can we use sql language to create a function in Postgres?
Дата
Msg-id ef205ba5-232e-3e67-1efb-27c6fd1bf591@rodonnell.ie
обсуждение исходный текст
Ответ на Re: Can we use sql language to create a function in Postgres?  (Ray O'Donnell <ray@rodonnell.ie>)
Список pgsql-general
On 05/01/2022 11:08, Ray O'Donnell wrote:
> On 05/01/2022 11:04, Shaozhong SHI wrote:
>> I was given an Oracle script.  Can we use sql language to create a 
>> function in Postgres?
> 
> Yes, absolutely:
> 
> create function my_function(...)
> as
> $$
>    select.....
> $$
> language sql;

Should have added the link to the docs:

https://www.postgresql.org/docs/14/server-programming.html

Ray.


-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie



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

Предыдущее
От: Ray O'Donnell
Дата:
Сообщение: Re: Can we use sql language to create a function in Postgres?
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Can we use sql language to create a function in Postgres?