1.0

Table Of Contents
sqlf(PEERCLIENT)> create table newtable (newid int primary
key,
> newname varchar(12));
0 rows inserted/updated/deleted
sqlf(PEERCLIENT)> prepare listFirstTable as 'select * from
firsttable';
sqlf(PEERCLIENT)> autocommit off;
sqlf(PEERCLIENT)> execute 'insert into newtable(newid,
newname)
> values(?,?)' using listFirstTable;
1 row inserted/updated/deleted
1 row inserted/updated/deleted
1 row inserted/updated/deleted
sqlf(PEERCLIENT)> commit;
sqlf(PEERCLIENT)> select * from newtable;
NEWID |NEWNAME
------------------------
20 |TWENTY
30 |THIRTY
10 |TEN
3 rows selected
exit
Completes the sqlf application and halts processing.
Syntax
EXIT
Description
Causes the sqlf application to complete and processing to halt. Issuing this command from within a le started
with the run on page 418 command or on the command line causes the outermost input loop to halt.
sqlf exits when the Exit command is entered or if given a command le on the Java invocation line, when the
end of the command le is reached.
Example
sqlf(PEERCLIENT)> disconnect peerclient;
sqlf> exit;
first
Moves the cursor to the rst row in the ResultSet, then fetches the row.
Syntax
FIRST
Identifier
407
sqlf Interactive Commands