Home
Project Home
Getting Started
Command Reference
Tutorial
Download
 
SET
Options Default Syntax/Description
NULL
[NULL]
SET NULL null_text
Controls the text uSQL* prints in a column when the value for that column is null
PROMPT
usql>
SET PROMPT prompt_text
Controls the text of the uSQL* command prompt
SQLTERMINATOR
;
SET SQLTERMINATOR terminator
Controls the character for terminating an SQL statement
SUFFIX
sql
SET SUFFIX suffix
Controls the default extension used for finding files named to execte external command files
SCRIPT_EXEC_PREFIX
@
SET SCRIPT_EXEC_PREFIX prefix
Controls the default prefix used for executing external command files
PAGESIZE
50
SET PAGESIZE pagesize
Controls the number of records displayed per page
ARRAYSIZE
0
SET ARRAYSIZE arraysize
Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed
TIMEOUT
0
SET TIMEOUT timeout
Sets the number of seconds the driver will wait for a query to execute before throwing an exception
ECHO
On
SET ECHO on|off
Controls if commands should be echoed to the screen while a command file is being exected
FEEDBACK
On
SET FEEDBACK on|off
Controls if uSQL* should display the number of affected records by a query
SQLNUMBER
On
SET SQLNUMBER on|off
Controls if uSQL* should display the line number while in SQL edit mode
SHOWMODE
On
SET SHOWMODE on|off
Controls if uSQL* should list the before and after values when using the SET command
SQLPATHS
.
SET SQLPATHS path
Controls where uSQL* should look for command files to be exected
SHOW
parameter
-
SHOW parameter|ALL
Displays the value for the parameter parameter or all values when parameter is ALL
CONNECT
-
-
CONNECT
alias
driver
url
username
password
database

Makes a connection to the database server
DISCONNECT
-
-
DISCONNECT connection alias
Disconnects the connection referenced by the connection alias parameter
USE
CONNECTION
-
USE CONNECTION connection alias
Uses the CONNECTION referenced by the connection alias parameter
DATABASE
-
USE DATABASE database
Uses the DATABASE referenced by the database parameter
OUTPUT
-
USE OUTPUT output
Uses the Output referenced by the output parameter
SAVE
filename
[CREATE]
SAVE filename [CREATE]|[REPLACE]|[APPEND]
Saves the query to a file referenced by the filename parameter. If the [CREATE] parameter is specified, the operation will fail if the file already exists
APPEND (Line-Editing Command)
text
-
APPEND text
Appends the text to the end of the current line of the query in the Buffer
CHANGE (Line-Editing Command)
/from/to/
-
CHANGE /from/to/
Changes the first occurence of from with to in the current line of the query in the Buffer
/delete/
-
CHANGE /delete/
Deletes the first occurence of delete in the current line of the query in the Buffer
DEL (Line-Editing Command)
DEL
-
DEL
Deletes the current line of the query in the Buffer
DEL linenum
-
DEL linenum
Deletes the line specified of the query in the Buffer
INPUT (Line-Editing Command)
INPUT
-
INPUT
Adds a line after the current line to the query in the Buffer
INPUT linenum
-
INPUT linenum
Adds a line after the line specified to the query in the Buffer
LIST (Line-Editing Command)
LIST
-
LIST
Displays the entire Buffer
LIST linenum
-
LIST linenum
Displays the linenum in the Buffer and makes that the current line
LIST start end
-
LIST start end
Displays the range of start to end in the Buffer and makes the last line the current line
linenum (Line-Editing Command)
linenum
-
linenum
Displays the line specified by the linenum and makes that line the current line
CLEARBUFFER (Line-Editing Command)
-
-
CLEARBUFFER
Clears the Buffer. This deletes all the lines
SPOOL
ON spool file
-
SPOOL ON spool file
Sets uSQL* to print all output to the spool file
OFF
-
SPOOL OFF
Turns SPOOL off and returns output to the screen
DESCRIBE
CONNECTION
-
DESCRIBE CONNECTION
Shows connection details for the active connection
SERVER
-
DESCRIBE SERVER
Shows all databases on server for the active connection
TABLES
-
DESCRIBE TABLES
Shows all tables in the current database for the active connection
PROCEDURES
-
DESCRIBE PROCEDURES
Shows all stored procedures in the current database for the active connection
INDEXES
-
DESCRIBE INDEXES table
Shows all indexes in the named table
PRIMARY_KEYS
-
DESCRIBE PRIMARY_KEYS table
Shows all primary keys in the named table
FOREIGN_KEYS
-
DESCRIBE FOREIGN_KEYS table
Shows all foreign keys in the named table
TABLE
-
DESCRIBE TABLE table
Shows information about the named table
FORMAT
DATE date_format
Default display from database
FORMAT DATE date_format
Sets uSQL* to format all date types to the specified date_format
NUMBER num_format
Default display from database
FORMAT NUMBER num_format
Sets uSQL* to format all numeric types to the specified num_format
COPY
{FROM connection_alias|TO connection_alias}
destination_table [(column_list)]
USING select_statement
-
Copy's data from table from one connection to another.
DEFINE
param name = param value
-
param value is substituted for param name when prefixed with the '&' character in input
UPROC
ADD procedure
-
Adds Procedure to the usql.procs file
DELETE procedure
-
Remove's Procedure from the usql.procs file
procedure
-
Executes Procedure