Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexseek
Message
De
15/07/2004 15:10:10
 
 
À
15/07/2004 14:46:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00924849
Message ID:
00924868
Vues:
16
>Not sure what you want to do. Are you trying to insert a new record and check if the key already exist? If so, you are going into trouble in a multiuser/multisession environment. Better to use an auto-increment integer field, a GUID or a reference table for that.
>
>>How to check if one key already exists using indexseek. I know that indexseek does not consider the current record when I am inserting, but when the record is not new the indexseek check the current record too.

I have one table with one column that is defined with primary key. In this table I have a second column that could be defined with candidate index, but it can not because this column admit no value for that. But if the second column have one value this value must be unique.

I would like to check the unique value for the second column with indexseek. When I am inserting a new record no problem, but when I am updating one record the indexseek validate against the current record too, and it says that the record already exists.
Antonio Carlos Kleinübing
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform