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-08-11 15:03:21

ACCESS中文man

2011-08-16 10:59:16

pwconv中文man

2011-08-25 17:43:07

snprintf中文man

2011-08-19 18:30:52

ipc中文man

2011-08-25 17:18:07

putc中文man

2011-08-15 13:53:19

stat中文man

2011-08-25 15:24:31

execlp中文man

2011-08-15 18:06:07

restore中文man

2011-08-24 17:26:35

reindex中文man

2011-08-15 15:45:04

xpdf中文man

2011-08-24 17:06:42

NOTIFY中文man

2011-08-15 14:42:28

uname中文man

2011-08-15 11:30:37

pwd中文man

2011-08-23 14:24:42

ping中文man

2011-08-15 11:01:45

2011-08-11 16:31:49

biff中文man
点赞
收藏

51CTO技术栈公众号