Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET COLLATE and SELECT SQL
Message
 
To
06/05/1998 15:11:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00097194
Message ID:
00097479
Views:
29
>That means that I have to create all indexes using UPPER function or store all the data in the upper case. It seems to me that I am back to Foxpro 2.x ways and SET COLLATE is absolutely useless. And if need to go internationally I still won't get correct letter sequense unless I use UPPER indexes.
>
>Dmitriy

I think that you'll note that if SET COLLATE is GENERAL, it doesn't order the table in the way you might think. Values which are equal, say "a" and "A", don't appear in their ASCII code sequences, but rather in the order they were added to the table. However, a query ordering by the same field will place the fields in their proper order will produce this result. I don't think that you need the UPPER() function in any place other than the WHERE clause.

As I may have mentioned before, the documentation does not mention that the collation sequence will have any impact on the returned result set.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform