Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another SQL question
Message
 
To
27/08/2002 16:40:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00694233
Message ID:
00694237
Views:
13
>Hello,
>
>I'm using this SQL statement:
>
SELECT * from Test WHERE CHRTRAN(cName,' ','') = "GAMMARES"
>
>The result will also give records like "GAMMA". However, "GAMMA" = "GAMMARES" returns .F. Why does the result include these records?
>Thanks.

If SET ANSI is set to ON then there is no match.

If SET ANSI is set to OFF then the result will be as you have indicated as GAMMA is contained within GAMMARES.

You can also use == to indicate "exactly equal to".

Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform