Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oracle 8i
Message
 
 
À
05/10/1999 08:13:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00272633
Message ID:
00272662
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform