Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

PLSQL的事务管理 sql SQLServer PGSQL 事务管理

$
0
0

PLSQL的事务管理。PL SQL 在执行DELETE、INSERT、update命令之后,不会自动提交事务。

需要执行commit;命令去提交事务

备注:可以打开自动提交命令。

set autocommit on

PL SQL 中可以使用的命令:

commit:提交事务

rollback:回滚事务

savepoint:保存当前事务点

autocommit:打开或者关闭自动提交事务

set transaction:设置事务是否只读

set transaction read only | read write


Viewing all articles
Browse latest Browse all 3160