Download Mimer SQL User's Manual v8.2

Transcript
9-18
BSQL commands
SHOW SETTINGS
Displays the current values of all set options.
Syntax
SHOW SETTINGS;
Description
Display the current values for all set options, i.e. ECHO, LINECOUNT,
LINESPACE,
LINEWIDTH,
LOG,
MESSAGE,
OUTPUT,
PAGELENGTH,
PAGEWIDTH,
TRANSACTION
START,
TRANSACTION ISOLATION LEVEL and TRANSACTION MODE
(read only or read write).
Current server and connection names are also displayed.
UNLOAD
The UNLOAD command can be used to unload data from a table into a
sequential file.
Syntax
UNLOAD TO 'file-name' FROM table-name <NULL|NONULL>
< (col-name POS(s:e), ..., col-name POS(s:e ) | DELIMITER 'character'
>;
Description
NULL (default) specifies that the first byte for each column value in the
output file is used to indicate whether the value is NULL or not. This byte
is assigned an ampersand (&) if the column from which the field is derived
contains NULL, the rest of the field is filled with periods (...). Otherwise
the byte is blank.
NONULL specifies that the first byte for each column value in the output
file is the first data byte of the value.
If column-specifications are given, the output file will only hold values for
the columns which are given. For each column the sequential position of
the start and the end byte of the column value should be specified in
POS(s:e). Overlapping is not controlled.
If a delimiter character is given, column data will be written to the output
file delimited by the specified character. All columns will be included.
If neither column-specifications nor a delimiter character are given, default
values for positions are determined by the table definition. All columns
will be included.
The UNLOAD command may not be used if a transaction is active. For
further information on transactions, see Chapter 6.
Mimer SQL version 8.2
User’s Manual