Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using IN keyword seems to ignore CASE
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00682999
Message ID:
00683009
Views:
24
The SQL Server can be installed as case-sensitive or not (Default). In the second case any character comparisons would be case-insesitive. You can make them case sensitive by converting string values to a binary format
SELECT * FROM history 
WHERE CAST(type AS binary(1)) IN ( CAST('L' AS binary(1)))
>Hi,
>
> SELECT * FROM history WHERE type IN ('L')
>
>seems to ignore case, because I'm getting all
>records with both upper and lower case L's.
>
>Is there anyway to trap out the lower case L's?
>
>Thanks,
>
>Tom
>
>PS I tried to search for 'IN keyword', but the search
>function says I have to have three characters minimum.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform