Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this index syntax
Message
De
21/02/2008 06:16:23
 
 
À
21/02/2008 06:08:19
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01294555
Message ID:
01294654
Vues:
24
>Yes this should do. Anyway I don't like the candidates and primarys on fields exposed to the user. One deleted could do so much harm.

I agree

>Is optometrist norsk? Neat.

No, in Norwegian (norsk) it's optiker.

>Agnes
>
>>Yes, it is, and I even wanted to write that. But I thought that I should try it first. Since I received an error message, I thought it was a syntax error, but it was a "Uniqueness of index xx is violated" message. I'm off to the optometrist now to get new glasses! :-)
>>
>>In other words the shortest syntax is
>>index on upper(surname-firstnames) tag NAMEUNIQUE  FOR  internal=1 CANDIDATE
>>
>>>Hi Tore,
>>>
>>>surname-firstnames
>>>
>>>
>>>should not need PADR. The spaces from surname are moved to the end of the string.
>>>
>>>Agnes
>>>>>Hi
>>>>>just wondering whats wrong with syntax below !!?
>>>>>
>>>>>index on trim(upper(surname))+trim(upper(firstnames)) tag NAMEUNIQUE FOR internal=1 CANDIDATE
>>>>>
>>>>>the error is ,Command contains unrecognized phrase/keyword (Error 36)
>>>>>
>>>>>if i remove keyword "candidate" it goes thru fine but i need to create unique index.
>>>>>any ideas much appreciated
>>>>
>>>>The reason for this error is that the index expression does not always create index keys of fixed length, which is a requirement.
>>>>index on padr(upper(trim(surname)+trim(firstnames)),50) tag NAMEUNIQUE  FOR  internal=1 CANDIDATE
>>>>Or even shorter
>>>>index on padr(upper(surname-firstnames),50) tag NAMEUNIQUE  FOR  internal=1 CANDIDATE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform