ij Commands and Errors Reference,
Page 29 of 37


[top]
[prev]
[next]
Documentation Top
Index for This Book

Absolute
After Last
Async
Autocommit
Before First
Close
Commit
Connect
Disconnect
Driver
Elapsedtime
Execute
Exit
First
Get Cursor
Get Scroll Insensitive Cursor
Help
Last
MaximumDisplayWidth
Next
Prepare
Previous
Protocol
Readonly
Relative
Remove
Rollback
Run
Set Connection
Show Connections
Wait For

Rollback

Syntax

ROLLBACK

Description

Issues a java.sql.Connection.rollback request. Use only if auto-commit is off. A java.sql.Connection.rollback request undoes the currently active transaction and initiates a new transaction.

Example

 ij> INSERT INTO menu VALUES ('dessert', 'rhubarb pie', 4);
 1 row inserted/updated/deleted
 ij> SELECT * from menu;
 COURSE    |ITEM                |PRICE
 -----------------------------------------------
 entree    |lamb chop           |14
 dessert   |creme brulee        |7
 appetizer |baby greens         |7
 dessert   |rhubarb pie         |4
 
 4 rows selected
 ij> rollback;
 ij> SELECT * FROM menu;
 COURSE    |ITEM                |PRICE
 -----------------------------------------------
 entree    |lamb chop           |14
 dessert   |creme brulee        |7
 appetizer |baby greens         |7
 
 3 rows selected
[top]
[prev]
[next]


Cloudscape Version 3.0
For technical support, go to: www.cloudscape.com and click Support.
Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved.