Contents Aster SQL and Function Reference


Add to my manuals
228 Pages

advertisement

Contents Aster SQL and Function Reference | Manualzz

Aster Data proprietary and confidential

See Also

“SET” on page V-83

START TRANSACTION

START TRANSACTION

START TRANSACTION -- start a transaction block

Synopsis

START TRANSACTION;

Description

This command begins a new transaction block. If the isolation level or read/write mode is specified, the new transaction has those characteristics. This is the same as the

BEGIN

command.

Parameters

TRANSACTION Optional keyword. Has no effect.

Notes

START TRANSACTION has the same functionality as

“BEGIN” on page V-18 .

Use

COMMIT

or

ROLLBACK

to terminate a transaction block.

Issuing

START TRANSACTION

when already inside a transaction block will provoke a warning message. The state of the transaction is not affected.

Example

To begin a transaction block:

START TRANSACTION;

Compatibility

In the standard, it is not necessary to issue

START TRANSACTION

to start a transaction block: any SQL command implicitly begins a block. Aster Database's behavior can be seen as implicitly issuing a

COMMIT

after each command that does not follow

START TRANSACTION

(or

BEGIN

), and it is therefore often called "autocommit".

See Also

To initiate a transaction:

BEGIN (page V-18)

To finish a transaction:

COMMIT (page V-22)

END (page V-56)

December 14, 2011 SQL Commands V--87

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

advertisement

Table of contents