September 30, 2015 at 6:58 pm
SELECT *
FROM dbo.LIKETest
WHERE Name LIKE N'[CDW]%';
What is the function of the 'N' after LIKE.
September 23, 2016 at 2:10 pm
johnbergholm (9/30/2015)
SELECT *FROM dbo.LIKETest
WHERE Name LIKE N'[CDW]%';
What is the function of the 'N' after LIKE.
This is an old post, but it never had a reply because it's on a section that no one checks.
The N indicates that the string is a Unicode string.
Here's an example you can run to see the difference (copy and paste):
SELECT N'?', '?'
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy