Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inline formatting in SQL selects-more strange VFP behavi
Message
De
25/04/2001 23:10:28
 
 
À
25/04/2001 19:29:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00499921
Message ID:
00499967
Vues:
18
>and the Line field is a left-justified char string of 1 or 2 chars, and I really want to sort by PADL(Line,2) for some reason issuing:
>
>SELECT PADL(Line,2) FROM SomeFile ORDER BY 1
>
>does NOT result in a properly sorted query.

Have you tried:
SELECT PADL(ALLTRIM(Line),2) FROM SomeFile ORDER BY 1
Sylvain Demers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform