postgre数据库在上一个语句执行失败后,须要提交事务才能开始下一个语句

如题!sql 今天工做中遇到问题,在上一条sql语句执行失败后,紧接着执行下一条sql语句,结果报如下异常:数据库 PSQLException: current transaction is aborted, commands ignored until end of transaction block 经过google到stackoverflow,发现原来是由于设置了connection.set
相关文章
相关标签/搜索