Sybase BEGIN ATOMIC
在PostgreSQL中的等效语句是什么?
它应该类似于:
create or replace function my_func()
returns int
as $$
begin
begin atomic
update stetment1;
update stetment2;
update stetment3;
end;
end;
$$ LANGUAGE PLPGSQL;
三个更新语句必须一起成功或一起失败。