ABORT 中文man页面

系统
ABORT 回卷当前事务并且废弃所有当前事务中做的更新。

NAME

ABORT - 退出当前事务

SYNOPSIS

ABORT [ WORK | TRANSACTION ]

DESCRIPTION 描述

ABORT 回卷当前事务并且废弃所有当前事务中做的更新。 这个命令和 SQL 命令 ROLLBACK [rollback(7)], 的行为完全一样, 只是由于历史原因而保留下来。  

PARAMETERS 参数

WORK
TRANSACTION

 可选的关键字,它们没有什么影响。

NOTES 注意


 使用 COMMIT [commit(7)] to 成功地中止一个事务。


 如果不在事务内部发出 ABORT 不会有问题,但是会产生一个警告信息。  

EXAMPLES 例子


 退出全部变更:

ABORT;

COMPATIBILITY 兼容性


 此命令是 PostgreSQL 基于历史原因做的扩展。 ROLLBACK 是 SQL 中等价的命令。  

SEE ALSO 参见

BEGIN [begin(7)], COMMIT [commit(l)], ROLLBACK [rollback(l)]

#p#

NAME

ABORT - abort the current transaction

SYNOPSIS

ABORT [ WORK | TRANSACTION ]

DESCRIPTION

ABORT rolls back the current transaction and causes all the updates made by the transaction to be discarded. This command is identical in behavior to the standard SQL command ROLLBACK [rollback(7)], and is present only for historical reasons.  

PARAMETERS

WORK
TRANSACTION
Optional key words. They have no effect.

NOTES

Use COMMIT [commit(7)] to successfully terminate a transaction.

Issuing ABORT when not inside a transaction does no harm, but it will provoke a warning message.  

EXAMPLES

To abort all changes:

ABORT;

COMPATIBILITY

This command is a PostgreSQL extension present for historical reasons. ROLLBACK is the equivalent standard SQL command.  

SEE ALSO

BEGIN [begin(7)], COMMIT [commit(l)], ROLLBACK [rollback(l)]

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-11-01 13:46:50

中文mantac

2011-08-25 16:55:26

gets中文man

2011-08-25 15:49:02

freopen中文man

2011-08-25 16:00:56

fflush中文man

2011-08-25 16:08:55

fsetpos中文man

2011-08-25 15:33:18

exit中文man

2011-08-25 10:55:37

services中文man

2011-08-25 09:35:26

units中文man

2011-08-24 13:57:35

DECLARE中文man

2011-08-11 15:28:43

ali中文man

2011-08-23 17:24:11

userdel中文man

2011-08-23 17:33:22

rdev中文man

2011-08-18 19:15:25

group中文man

2011-08-23 10:17:54

bdflush中文man

2011-08-23 10:48:03

exportfs中文man

2011-08-15 14:25:41

testparm中文man
点赞
收藏

51CTO技术栈公众号