Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One Record or All Records in same view.
Message
 
 
À
21/08/2008 12:49:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01340612
Message ID:
01340838
Vues:
12
>Integer primary key.

Run some tests to see which is faster/optimizable
WHERE EMPTY(?vp_PrimaryKey) OR Table.PrimaryKey = ?vp_PrimaryKey

* Or

* 1 Record
vp_PrimaryKeyMin = vp_PrimaryKey
vp_PrimaryKeyMax = vp_PrimaryKey
* All Records
vp_PrimaryKeyMin = 1
vp_PrimaryKeyMax = 2^32-1

WHERE Table.PrimaryKey BETWEEN ?vp_PrimaryKeyMin AND ?vp_PrimaryKeyMax
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform