How to create function that returns nothing

前端 未结 2 1402
忘掉有多难
忘掉有多难 2021-02-01 00:15

I want to write a function with pl/pgsql. I\'m using PostgresEnterprise Manager v3 and using shell to make a function, but in the shell I must define retu

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 00:36

    Functions must always return something, although you can use procedures like

    do $$
    

    and start with normal function like

    declare
    ...
    

    but if you still want to do a function just add void after returns.

提交回复
热议问题