I need your help on this: I am using SQL Server 2008 and have a stored procedure which is used to retrieve values from a table column.
Column of table contains description which could have anything including all special characters.
Is there any way I can escape all special characters ?
Thanks
try this
WHERE Description LIKE '%\\ any text%'
here \\ means ESCAPE
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.