Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Goofy index with varchar
Message
 
 
À
12/02/2010 10:23:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01445586
Message ID:
01448938
Vues:
41
With default settings varchar columns retain entered trailing spaces. You'll have to run UPDATE on the varchar column once to trim trailing spaces.

>Sorry it took so long to get back. I've been working in NET recently and had to set my VFP work aside. LEAD is the name of a city like "Tucson". ST_NAME is the name of a roadway project like "Speedway Blvd - Alvernon to Swan". The intent of the index is to do an alpha sort of the records first by the city and then by the project name. With LEAD set to varchar the seemed OK but the second sort broke in the middle and restarted. That is it looked like this:
>
>city1, project1
>city1, project2
>city1, project3
>city1, project1a
>city1, project2a
>
>The city names are all entered from a combobox so they should all be the same. I've been thinking about the padding issue you mentioned but I don't think that explains it. :(
>
>(Although if some were entered when the field was CHAR and some when the field was VARCHAR, that may explain it.) :)
>Thanks
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform