Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filtering character in a query
Message
 
 
To
01/03/2011 09:28:49
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01502169
Message ID:
01502204
Views:
39
>>
>>SET @LXListFirstName='S\_SH%'
>>
>>SELECT Member.Numero
>> FROM Member
>> WHERE UPPER(Member.FirstName) LIKE @LXListFirstName ESCAPE '\'
>> ORDER BY Member.LastName,Member.FirstName 
>>
>
>Thanks, it is good to know there are more than one way to do it. BTW, do you know if this way would be better to use than encapsulating the _ character between []?

I think it may be better in case you have [ in your query.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform