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-25 16:47:37

fwrite中文man

2011-08-25 16:50:08

getc中文man

2011-08-25 16:52:54

getchar中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 16:22:29

fputc中文man

2011-08-25 16:28:50

fread中文man

2011-08-25 17:27:58

rewind中文man

2011-08-25 17:32:40

setbuffer中文man

2011-08-25 16:10:52

fgets中文man

2011-08-25 15:54:08

ferror中文man

2011-08-23 17:09:56

telinit中文man

2011-08-23 17:42:39

vmstat中文man

2011-08-23 17:49:36

zdump中文man

2011-08-15 15:24:49

wc中文man

2011-08-15 15:36:55

xmodmap中文man

2011-08-15 18:20:04

cut中文man
点赞
收藏

51CTO技术栈公众号