Use the Export Wizard to export query results in a specific format to a file or database.
Prerequisites
DBA authority.
Context and remarks
Many.
Execute a query.
In Interactive SQL, click Data » Export.
Follow the instructions in the Export Wizard.
Example
Execute the following query while connected to the SQL Anywhere sample database.
SELECT * FROM Employees WHERE State = 'GA'; |
The result set includes a list of all employees who live in Georgia.
Click Data » Export.
Click In A Database.
In the Database Type list, click UltraLite.
In the User Id field, type dba.
In the Password field, type sql.
In the Database File field, type C:\Documents and Settings\All Users\Documents\SQL Anywhere 12\Samples\UltraLite\CustDB\custdb.udb.
Click Next.
Click Create a new table.
In the Table Name field, type NewTable.
Click Export.
Click Close.
Click SQL » Previous SQL.
The OUTPUT USING statement created and used by the Export Wizard appears in the SQL Statements pane:
-- Generated by the Export Wizard OUTPUT USING 'driver=UltraLite 12;UID=dba;PWD=sql; DBF=C:\Documents and Settings\All Users\Documents\SQL Anywhere 12\Samples\UltraLite\CustDB\custdb.udb' INTO "dba"."NewTable" CREATE TABLE ON |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |