Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL not working as expected
Message
From
24/04/2005 03:20:14
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01007835
Message ID:
01007864
Views:
14
>Has it always been that a string comparision works differently in SQL than FoxPro? or was that just with VFP8?
>

On every VFP:
xbase "=" use SET("COLLATE")
SQL   "=" and "==" uses  SET("COLLATE")

xbase "s1=s2" with SET("EXACT")=OFF, if Len(s1)>=LEN(S2), then it is equal  to , SQL "s1=s2" with SET("ANSI")=OFF

xbase "s1=s2" with SET("EXACT")=ON, is fully equal to , SQL "s1==s2" OR "s1=s2" with SET("ANSI")=ON

*******
xBase "==" don't use SET("COLLATE")
xBase "LIKE()"  don't use SET("COLLATE")
SQL " LIKE "  don't use SET("COLLATE")

xbase "s1==s2" or "LIKE(s1,s2)", is fully equal to , SQL "s1 LIKE s2"
Previous
Reply
Map
View

Click here to load this message in the networking platform