Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is the Pack command really dangerous?
Message
De
12/12/2000 12:54:16
 
 
À
11/12/2000 23:00:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00451943
Message ID:
00452345
Vues:
35
>>I've read warnings about using the PACK command to delete records.
>
>I have too, never heard about them actually happening though.
One easy way to avoid problems is to:
SELECT * FROM sometable WHERE !DELETED() INTO somecursor NOFILTER
SELECT sometable
PACK
*** If the PACK was successful, release the cursor.
*** Otherwise either delete the table and copy the
*** cursor to it or ZAP the table and append into
*** it from the cursor.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform