ROLLBACK 中文man页面

系统
ROLLBACK 回卷当前事务并取消当前事务中的所有更新。

NAME

ROLLBACK - 退出当前事务

SYNOPSIS

ROLLBACK [ WORK | TRANSACTION ]

DESCRIPTION 描述

ROLLBACK 回卷当前事务并取消当前事务中的所有更新。  

PARAMETERS 参数

WORK
TRANSACTION

 可选的键字。没有作用。

NOTES 注意


 使用 COMMIT [commit(7)] 语句将一次事务成功停止。


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

EXAMPLES 例子


 取消所有更改:

ROLLBACK;

COMPATIBILITY 兼容性


 SQL 标准只声明了两种形式 ROLLBACK  和 ROLLBACK WORK。否则完全兼容。  

SEE ALSO 参见

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

#p#

NAME

ROLLBACK - abort the current transaction

SYNOPSIS

ROLLBACK [ WORK | TRANSACTION ]

DESCRIPTION

ROLLBACK rolls back the current transaction and causes all the updates made by the transaction to be discarded.  

PARAMETERS

WORK
TRANSACTION
Optional key words. They have no effect.

NOTES

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

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

EXAMPLES

To abort all changes:

ROLLBACK;

COMPATIBILITY

The SQL standard only specifies the two forms ROLLBACK and ROLLBACK WORK. Otherwise, this command is fully conforming.  

SEE ALSO

BEGIN [begin(7)], COMMIT [commit(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 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 17:24:54

puts中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 15:39:34

rpmbuild中文man

2011-08-24 15:48:38

INSERT中文man

2011-08-25 09:40:49

UPDATE中文man
点赞
收藏

51CTO技术栈公众号