Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting 10 records randomly
Message
De
04/01/1998 12:43:45
 
 
À
04/01/1998 11:22:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00069291
Message ID:
00069352
Vues:
38
>>What would be the best technique to select 10 records randomly from a table?
>
>This is how I do it.
>
>
>SELECT TOP 10 Table.field1, RAND() AS Dummy;
> FROM Table;
> ORDER BY 2;
> INTO CURSOR tmpStore
>
The "TOP x" clause in a SELECT SQL has a bug in VFP and it may return more than x records.

But I like the idea. I will keep it in mind. Thanks.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform