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 13:58:08

bind中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-19 18:25:49

inittab中文man

2011-08-25 17:20:37

putchar中文man

2011-08-16 09:56:22

groupdel中文man

2011-08-23 16:56:57

swapon中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 10:21:40

blockdev中文man

2011-08-24 15:08:18

EXECUTE中文man

2011-08-15 11:15:06

newgrp中文man

2011-08-24 09:54:45

ANALYZE中文man

2011-08-24 15:29:06

grant中文man

2011-08-16 09:19:05

rmt中文man

2011-08-15 10:04:26

mail中文man

2011-08-23 15:27:21

route中文man

2011-08-29 10:39:12

fifo中文man
点赞
收藏

51CTO技术栈公众号