Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oracle 8i
Message
 
 
To
05/10/1999 08:13:33
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00272633
Message ID:
00272662
Views:
29
>Got 2 questions:
>
>1. Is there an equivalent field type in Oracle to the Foxpro's LOGICAL?.

No. You could use a numeric data type of width 1 and use 0 for False and 1 for True.

>2. I have a SQL statement which combines a local cursor already SQLed from the back-end and need to re-use on a 2nd SQL. How can I use this?.
> Select * from table1 where filter1 into cursor cursor1
>
>
> Select * from table2 where table2.code in (Select name from cursor1)
>
>Thanks for the responses.

You can not do this. You need to submit subquery:

Select * from table2 where table2.code in (Select table1.code from table1 where filter1)

Use SQLExec function to return the results to a cursor.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform