openGauss/MogDB存储过程事务控制与异常块

本文将分别在openGauss/MogDB和PostgreSQL数据库中测试存储过程commit与exception的使用。

实验一

PostgreSQL

先创建测试表

create table t1(id int);