I am trying this code
CREATE TABLE #t
(
nam Varchar(100)
)
INSERT INTO #t(nam)VALUES('abc[]def')
SELECT * FROM #t Where Quotename(nam) like Quotename('abc[]def')
drop table #t
and not giving me any result…. Am I missing something?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Its not returning anything because Brackets
[ ]are know as Wildcard alphabets withLIKE.The set of characters specified between brackets wildcard which will match any one characters in the specified position (the location of the wildcard).
http://msdn.microsoft.com/en-us/library/ms179859.aspx
Please open the link and search the following text.
Using the [ ] wildcard characters