Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating empty cursor using SQLEXEC()
Message
De
23/07/2003 09:48:23
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00812705
Message ID:
00812759
Vues:
12
Mark, thanks for the reply.

>>Use a filter in the WHERE clause that can be optimized but returns no mathing records. For example, say I have a Primary Key field named KeyID and only contains positive integer numbers:

SELECT * FROM MyTable WHERE MyTable.KeyID = -1>>

I like it, but it would mean a different WHERE condition for each table. If possible, I would like a more generic solution. Does SQL have the equivalent of .F.? I tried WHERE FALSE, but that did not work. However, WHERE 1=0 did produce an empty cursor, but would SQL have checked every record in this case?

Regards,
Alan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform