Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of special character
Message
 
 
To
15/11/2010 16:55:50
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01489159
Message ID:
01489162
Views:
67
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform