Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux