Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search for a dash
Message
De
17/07/2014 14:27:09
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Search for a dash
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01603942
Message ID:
01603942
Vues:
63
If I have a select like this:
DECLARE @Title Varchar(50)

SET @Title='Michel F%'

SELECT Client.Numero FROM Client WHERE Client.Title LIKE @Title
...it will find all records having a title starting with Michel F.

But, if I have this:
DECLARE @Title Varchar(50)

SET @Title='Michel F-%'

SELECT Client.Numero FROM Client WHERE Client.Title LIKE @Title
...it will not find anything, even if I have some title starting with Michel F-ournier, for example.

I assume there is a conversion that has to be done on such special character.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform