Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT statement in an INSERT statement
Message
From
02/05/2005 11:06:21
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
01/05/2005 22:27:09
General information
Forum:
Sybase
Category:
SQL Syntax
Miscellaneous
Thread ID:
01010070
Message ID:
01010143
Views:
27
Winan,

I am not sure what version of ASA you are using. In version 8 or 9 you can use proxy tables to do this. You would setup a proxy table to the Access table and then do your select from ASA.

>Dear All,
>I want to use a SELECT statement in an INSERT statement but different Database (ASA and Ms. Access)
>I have 2 tables in 2 different databases.
>
>Table ZN is in ASA
>Table PAC is in Ms. Access
>
>How to insert ZN by using SELECT statement?
>
>I thought it is impossible to use below SQL statement..
>
>Dim mInsertZN As String
>mInsertZN = "INSERT INTO ZN (ZN) SELECT DISTINCT ZN FROM PAC ORDER BY ZN"
>
>I need advise ..
>
>many thanks in advance
>Regards
>Winanjaya
Previous
Reply
Map
View

Click here to load this message in the networking platform