Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET COLLATE and SELECT SQL
Message
 
To
06/05/1998 12:06:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00097194
Message ID:
00097461
Views:
25
>But SET COLLATE TO 'MACHINE' makes my indexes case sensitive. That's what I am trying to avoid. I will have to use UPPER or LOWER functions in index expressions all over the place.
>
>Dmitriy

Sorry, misunderstood the question. The documentation doesn't mention that the collation sequence impacts the result set. It does mention that both SET ANSI and SET EXACT do. However, if you use the UPPER() function on both sides of the LIKE (ie. ...WHERE UPPER(FIELDNAME) LIKE UPPER(cExpr)...), I think you'll get the results you're looking for.
George

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

Click here to load this message in the networking platform