Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql problem in different language OS
Message
De
01/08/2002 11:39:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
01/08/2002 08:20:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00684877
Message ID:
00685024
Vues:
21
>Have a go at both possible solutions and see whether they work.
>Difficult for me to test since I do not have access to chinese
>
>solution 1)
>
>pStartCode = 'A'
>pEndCode  = 'Z'
>
>select * ;
>    from companytable ;
>    where ( companytable.code between pStartCode and padr(rtrim(pEndCode), len(companytable.code), 'z') )
>
>
>
>solution 2)
>
>pStartCode = 'A'
>pEndCode  = 'Z'
>
>select * ;
>    from companytable ;
>    where ( companytable.code between pStartCode and pEndCode + chr(255) )
>
Z is not necessarily the last character in all languages - in mine, it's ® (z caron) which comes after Z in our alphabet.

While I was using Fox with different codepages, I've discovered that the ISALPHA() function does respect the proper definition of what is a character and what is a digit or punctuation in the current codepage. So, the solution would be

where isalpha(companytable.code)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform