1.1

Table Of Contents
sqlf(PEERCLIENT)> after last scrollCursor;
No current row
async
Execute an SQL statement in a separate thread.
Syntax
ASYNC
Identifier String
Description
The ASYNC command lets you execute an SQL statement in a separate thread. It is used in conjunction with
the wait for on page 448 command to get the results.
You supply the SQL statement, which is any valid SQL statement, as a String. The Identier you must supply
for the async SQL statement is used in the wait for on page 448 command and is a case-insensitive sqlf identier.
An identier must not be the same as any other identier for an async statement on the current connection. You
cannot reference a statement previously prepared and named by the sqlf prepare on page 439 command in this
command.
sqlf creates a new thread in the current or designated connection to issue the SQL statement. The separate
thread is closed once the statement completes.
Examples
sqlf(PEERCLIENT)> async aInsert 'insert into firsttable values
(40,''Forty'')';
sqlf(PEERCLIENT)> insert into firsttable values (50,'Fifty');
1 row inserted/updated/deleted
sqlf(PEERCLIENT)> wait for aInsert;
1 row inserted/updated/deleted
-- the result of the asynchronous insert
autocommit
Turns the connection's auto-commit mode on or off.
Syntax
AUTOCOMMIT { ON | OFF }
Description
Turns the connection's auto-commit mode on or off. JDBC species that the default auto-commit mode is ON.
Certain types of processing require that auto-commit mode be OFF.
If auto-commit mode is changed from off to on when a transaction is outstanding, that work is committed when
the current transaction commits, not at the time auto-commit is turned on. Use commit on page 427 or rollback
425
sqlf Interactive Commands