Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String comparisons in SQL SELECT
Message
From
28/05/2002 01:17:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
String comparisons in SQL SELECT
Miscellaneous
Thread ID:
00661853
Message ID:
00661853
Views:
45
I am doing a select like this:

SELECT * FROM TABLE WHERE ALLTRIM(TRCODE) = "103"

and I get results that include empty TRCODE values (Character 6).
If I check at the same time ?ALLTRIM(SPACE(6)) = "103" it returns .F. as I would expect.

Why is the select picking up these records?

following SET's are:
SET EXACT ON
SET ANSI OFF
SET NEAR OFF
- Craig

"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson
Next
Reply
Map
View

Click here to load this message in the networking platform