I have this sql statement:
SELECT * from tBooks where BookNbr = '20111122-001'
BookNbr is defined as varchar (15), and the record does exist in the table.
I think it might have something to do with the dash, but don’t know why…
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.
So it is probably a hyphen vs. en dash vs. em dash issue. (You can confirm this by pasting the displayed matching field into an ascii editor to see if a multi-byte character appears.)
so that
%ignores the specific punctuation in the midst.