Use the OUTPUT statement to export query results, tables, or views from your database.
The OUTPUT statement is useful when compatibility is an issue because it can write out the result set of a SELECT statement in several different file formats. You can use the default output format, or you can specify the file format on each OUTPUT statement. Interactive SQL can execute a SQL script file containing multiple OUTPUT statements.
The default Interactive SQL output format is specified on the Import/Export tab of the Interactive SQL Options window (accessed by clicking Tools » Options in Interactive SQL).
Use the Interactive SQL OUTPUT statement when you want to:
export all or part of a table or view in a format other than text
automate the export process using a SQL script file
Exporting data to Excel and CSV files
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |