Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime index
Message
 
 
À
09/01/2009 03:39:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01371974
Message ID:
01372294
Vues:
17
>OK
>
>Table with datetime field (more than 10,000,000 lines).
>
>I have to rerieve the following ranges by indexs:
>
>Dates
>Time for specific date
>Time from date X to date Y.
>
>Other question is that most of the times (99.9%) I need the time index only the last three month, and the index date only for last two years, do I have to create huge index for all the table?

In our cases we're using just one index on datetime. If we need to get all records for specific date we use

between date() and dttot(date()+1)-1.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform