Sybase Adaptive Server Anywhere Reference page 592

Table of Contents

Advertisement

OUTPUT statement [Interactive SQL]
Parameters
574
CREATE VARIABLE JavaString java.lang.String;
SET JavaString = NEW java.lang.String( 'TestVar' );
SELECT JavaString FROM dummy;
If you set DESCRIBE_JAVA_FORMAT to Varchar:
The following command gives the hexadecimal representation of
TestVar in the output file.
OUTPUT TO filename
The following command gives a text representation of TestVar in the
output file (possibly escaped).
OUTPUT TO filename HEXADECIMAL OFF
If you set DESCRIBE_JAVA_FORMAT to binary:
The following command gives the hexadecimal representation of
JavaString in the output file.
OUTPUT TO filename
The following command gives the actual JavaString object in the output
file (with escape sequences).
OUTPUT TO filename HEXADECIMAL OFF
$
For more information, see "DESCRIBE_JAVA_FORMAT option" on
page 185.
DELIMITED BY clause
output format only. The delimiter string is placed between columns (default
comma).
QUOTE clause
The QUOTE clause is for the ASCII output format only.
The quote string is placed around string values. The default is a single quote
character. If ALL is specified in the QUOTE clause, the quote string is
placed around all values, not just around strings.
COLUMN WIDTH clause
specify the column widths for the FIXED format output.
HEXADECIMAL clause
binary data is to be unloaded, for the ASCII format only. When set to ON,
binary data is unloaded in the format 0xabcd. When set to OFF, binary data
is escaped when unloaded (\xab\xcd)
FORMAT clause
Allowable output formats are:
The DELIMITED BY clause is for the ASCII
The COLUMN WIDTH clause is used to
The HEXADECIMAL clause specifies how

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents