在函数中可以使用raise notice
:
create or replace function test_raise() returns void
language plpgsql
as $$
begin
raise notice 'hello %','world';
end;
$$
在psql
里面可以使用\echo
:
postgres=# \echo 'hello world'
hello world
在函数中可以使用raise notice
:
create or replace function test_raise() returns void
language plpgsql
as $$
begin
raise notice 'hello %','world';
end;
$$
在psql
里面可以使用\echo
:
postgres=# \echo 'hello world'
hello world