Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Key Length on Character fields 121
Message
De
17/01/2000 10:32:03
 
 
À
17/01/2000 06:52:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00318886
Message ID:
00318977
Vues:
101
>I create a table
>
>CREATE TABLE TEST (TEST C(121)) (or more)
>SET COLLATE TO 'GERMAN'
>INDEX ON TEST TAG TEST  Invalid Key Length
>
>But
>SET COLLATE TO 'MACHINE'
>INDEX ON TEST TAG TEST (ok)
>
>Works fine....

VFP keys can only be 240 bytes long. When you use a collate sequence of anything but MACHINE, VFP uses 2 bytes per character in the key, so the maximum size of the key is really only 120 bytes.

Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform