Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Temporary data in Oracle
Message
 
To
30/05/1998 00:52:13
Rakesh Parikh
Consindia Pvt. Ltd
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00103310
Message ID:
00103321
Views:
12
>Is it possible to create a temporary table on Oracle thru. an SQL select in VFP and use the table in subsequent queries?
>I do not want to drag the SQL results down everytime as they could be quite large and I want the results to be used on subsequent queries.
>
>I just can't seem to figure this out. Any help will be appreciated.
>
>Rakesh.


Hi Rakesh,

You can create SQL View on Oracle database instead of bringing down
the whole data set. This View can be easily used in subsequent queries. Please
go through the following.

lnhandle = SQLCONNECT()

?SQLEXECUTE(lnhandle,"CREATE VIEW myview AS SELECT cid,SUM(namount) AS nTotal FROM mytable")

?SQLEXECUTE(lnhandle,"SELECT cInvNo,nTotal FROM myview,mytable WHERE myview.cid = mytable.cid")

?SQLEXECUTE(lnhandle,"DROP VIEW myview")

?SQLDISCONNECT()

BTW, Are you from India?

Regards,
Jayesh
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform