I have a View in microsoft sql server management studio that uses the code
WHEN (CHARINDEX('&', page_url) > 0)
in a case statement, does the & mean something special?
Even in strings with a url that does not contain ‘&’ it seems to be greater than 0…?
The character ‘&’ means nothing special, when used within a string — it’s just an ampersand.
No SQL engine that i know of treats it specially.(OK, apparently Oracle does something wacky with it. But SQL server definitely doesn’t, and neither does any other DBMS i’ve worked with.)