COMMIT 中文man页面

系统
COMMIT 提交当前事务。 所有事务的更改都将为其他事务可见,而且保证当崩溃发生时的可持续性。

NAME

COMMIT - 提交当前事务

SYNOPSIS

COMMIT [ WORK | TRANSACTION ]

DESCRIPTION 描述

COMMIT 提交当前事务。 所有事务的更改都将为其他事务可见,而且保证当崩溃发生时的可持续性。  

PARAMETERS 参数

WORK
TRANSACTION

 可选关键字。没有作用。

NOTES 注意


 使用 ROLLBACK [rollback(7)] 语句退出一次事务。


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

EXAMPLES 例子


 要让所有变更永久化:

COMMIT;

COMPATIBILITY 兼容性

SQL92 只声明了两种形式 COMMIT 和 COMMIT WORK。否则完全兼容。  

SEE ALSO 参见

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

#p#

NAME

COMMIT - commit the current transaction

SYNOPSIS

COMMIT [ WORK | TRANSACTION ]

DESCRIPTION

COMMIT commits the current transaction. All changes made by the transaction become visible to others and are guaranteed to be durable if a crash occurs.  

PARAMETERS

WORK
TRANSACTION
Optional key words. They have no effect.

NOTES

Use ROLLBACK [rollback(7)] to abort a transaction.

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

EXAMPLES

To commit the current transaction and make all changes permanent:

COMMIT;

COMPATIBILITY

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

SEE ALSO

BEGIN [begin(7)], 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-12 14:58:05

killall中文man

2011-07-15 16:58:36

ac中文man

2011-08-15 11:10:48

more中文man

2011-08-25 17:03:51

pclose中文man

2011-08-15 14:10:37

tar中文man

2011-08-16 10:42:30

rmmod中文man

2011-08-18 13:57:38

acct中文man

2011-08-23 17:49:36

zdump中文man

2011-08-15 15:10:49

wall中文man

2011-08-23 15:06:03

quotastats中文man

2011-08-15 17:35:50

ar中文man

2011-08-25 09:07:16

suffixes中文man

2011-08-18 15:21:37

autofs中文man

2011-08-25 15:19:39

dirname中文man

2011-08-25 17:34:50

setlinebuf中文man

2011-08-15 15:17:14

ac中文man
点赞
收藏

51CTO技术栈公众号