Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of special character
Message
 
 
À
15/11/2010 16:55:50
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01489159
Message ID:
01489162
Vues:
69
This message has been marked as the solution to the initial question of the thread.
See ESCAPE clause
SELECT * FROM MyTable WHERE MyField LIKE '%\[signature]%' ESCAPE '\'
>I need to use a special character in a query and this causes me some problem. Basically, I need to search for:
>
>
>SELECT * FROM MyTable WHERE MyField LIKE '%[signature]%'
>
>
>However, the [ and ] characters are reserved and this creates a weird result. How can I adjust that query to make sure that [ and ] are really interpreted as a character?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform