Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using IN keyword seems to ignore CASE
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00682999
Message ID:
00683009
Vues:
23
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform