Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sample of Database
Message
De
21/12/2001 18:24:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/12/2001 16:06:43
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00597593
Message ID:
00597631
Vues:
11
>I need to take a project home over the holidays. It's a bit too big and I want to limit the number of records in the tables. I recall seeing a mechanism here not too long ago to pull off samples from tables. For argument's sake let's say that there is no need to worry about relationships or dependencies between tables. I only need 100 or so records out of around 500,000 for the larger tables. Anyone remember this? Nadya, was it you that did this? Thanks!
>
>Regards, Renoir

The fastest would be something like:
use MyTable
copy to c:\offsite\MyTable where recno() % 1000 = 0
(This gets one in every 1000 records. Adjust to fit your needs.)

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform