In Interactive SQL, the result set data (if any) for a statement remains on the Results tab in the Results pane only until the next statement is executed. To keep a record of your data, you can save the output of each statement to a separate file.
Prérequis
The privileges required depend on the statements being executed.
If statement1 and statement2 are two SELECT statements, then you can output the results of executing them to file1 and file2, respectively, as follows:
statement1; OUTPUT TO file1;statement2; OUTPUT TO file2; |
Exemple
The following statements save the result of a query to a file named Employees.csv in the C:\LocalTemp directory:
SELECT * FROM Employees; OUTPUT TO 'C:\\LocalTemp\\Employees.csv'; |
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |