Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check duplicate in table buffered mode?
Message
De
19/10/1997 01:52:52
 
 
À
19/10/1997 00:20:07
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00055264
Message ID:
00055336
Vues:
38
>>>How do I check for duplicate in table buffered mode? Do I have to do a 'COPY TO' a temp table before I check? It seems troublesome.
>>>
>>>This table buffering is really killing my time. Can someone please comment?
>>
>>This is an interesting situation. I don't think a COPY TO is good as it will slow down the process on big tables. Are candidates keys useful in this situation? This process may be handle by Visual FoxPro automatically using that. Or, if from a manual process, then I would check for all modified records in comparism with the rest of the table.
>>
>>There is certainly other techniques. Those are just the first ones that came to my mind.
>
>I am puzzled. Isn't this a basic thing everyone using VFP will encounter? How do you people normally handle duplicate key in table buffer mode? Using the candidate key? The second method sounds like quite a chore.

As for checking duplicates, I am calling a function for that which will seek to see if a value already exist for that field other than the current record we are presently on. However here, some special considerations may apply because you are using table buffering which means several new records may have been created but not on disk yet.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform