小编Ale*_*lex的帖子

交易中的交易

例如,如果调用下面的脚本,PostgreSQL 会显示什么行为

BEGIN;
SELECT * FROM foo;
INSERT INTO foo(name) VALUES ('bar');
BEGIN; <- The point of interest
END;
Run Code Online (Sandbox Code Playgroud)

PostgreSQL 会丢弃第二个BEGIN还是隐式决定提交,然后BEGIN END在最后将块作为单独的事务运行?

postgresql transaction postgresql-9.3

21
推荐指数
3
解决办法
3万
查看次数

标签 统计

postgresql ×1

postgresql-9.3 ×1

transaction ×1