Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting 10 records randomly
Message
De
04/01/1998 00:18:00
 
 
À
03/01/1998 23:38:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00069291
Message ID:
00069301
Vues:
44
select * from your table into cursor tmp
for i=1 to 10
  lnRecno = int(rand()*_tally)
  go lnRecno
  save the record somewhere
endfor
It's not the best technique, it's my way ;) >What would be the best technique to select 10 records randomly from a table?
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform