Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore and collate
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00202772
Message ID:
00203771
Views:
17
>Hi José,
>
>And here's the next one. The following program should create an empty result set. It does so with SET COLLATE TO "MACHINE", but it returns a couple of records with SET COLLATE TO "GENERAL".
>
>It's a simple rule, never ever use GENERAL when you have numerical or integer fields. Even when there's no index involved (like in this example), the reult set might be wrong.
>
>SET COLLATE TO "General"
>CREATE TABLE tmp (nID N(5))
>USE tmp
>FOR i = 1 TO 10000
>	APPEND BLANK
>ENDFOR
>REPLACE ALL nID WITH RECNO()
>
>SELECT * FROM tmp INTO CURSOR Junk nofilter
>
>SELECT * FROM tmp WHERE nID NOT IN (SELECT * FROM Junk)
>
>Christof

Quite illustrating too! The conclusion is very clear.

And thanks for a great explanation.

José
Previous
Reply
Map
View

Click here to load this message in the networking platform