Printing run time messages in postgres

前端 未结 4 2109
粉色の甜心
粉色の甜心 2021-02-12 16:29

Can we use RAISE NOTICE in postgres as equivalent of RAISERROR \'message to display\' WITH NOWAIT in SQL Server, or is there a better way

4条回答
  •  庸人自扰
    2021-02-12 17:10

    RAISE NOTICE is part of PL/pgSQL so it's only legal in a function or an anonymous DO block. I guess you could make a function that raises the notice and call that.

提交回复
热议问题