1.0

Table Of Contents
Chapter 54
sqlf Interactive Commands
sqlf implements an interactive command-line tool that is based on the Apache Derby ij tool. Use sqlf to run
scripts or interactive queries against a SQLFire cluster.
Start the interactive sqlf command prompt by using the sqlf or sqlf.bat script without supplying any other
options.
sqlf accepts several commands to control its use of JDBC. It recognizes a semicolon as the end of a sqlf or SQL
command. It treats semicolons within SQL comments, strings, and delimited identiers as part of those constructs and
not as the end of the command. Semicolons are required at the end of a sqlf or SQL statement.
All sqlf commands, identiers, and keywords are case-insensitive.
Commands can span multiple lines without using any special escape character for ends of lines. This means that if a
string spans a line, the new line contents show up in the value in the string.
sqlf treats any command that it does not recognize as a SQL command that is passed to the underlying connection.
This means that any syntactic errors in sqlf commands are handed to the SQL engine and generally result in SQL
parsing errors.
absolute
Moves the cursor to the row specied by the int, and then fetches the row.
Syntax
ABSOLUTE
int Identifier
Description
Moves the cursor to the row specied by the int, and then fetches the row. The cursor must have been created
with the get scroll insensitive cursor on page 408 command. It displays a banner and the values of the row.
Example
sqlf(PEERCLIENT)> select * from firsttable order by id;
ID |NAME
------------------------
10 |TEN
20 |TWENTY
30 |THIRTY
397