Close
Close window
Rollback - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Connection

Rollback

cancel the current transaction

Calling Sequence

connection:-Rollback( )

Parameters

connection

-

Connection module

Description

Rollback cancels the current transaction and discards all the changes in the current transaction. After Rollback has been called a new transaction is in effect.

The current transaction can be committed by calling Commit .

Examples

Execute an update.

>

driverDatabaseLoadDriver:

>

conndriver:-OpenConnectionurl,name,pass:conn:-ExecuteUpdateINSERT INTO animals( id, name, number, mass ) VALUES( 11, 'chicken', 15, 2.1 ):conn:-ExecuteUpdateINSERT INTO animals( id, name, number, mass ) VALUES( 12, 'cow', 2, 513 ):

Calling Rollback cancels all the uncommitted changes.

>

conn:-Rollback;conn:-ExecuteQuerySELECT * FROM animals WHERE id > 10,output=Array

(1)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /