I just ran across this in some code:
SELECT column1 +'='+ column2 . . . .
Does anyone know what +'='+ does? I've never seen that before.
It concatenates the string = together with the specified columns. It is called the "concatenate an equals sign operator" :) Strangely, MSDN does not document that operator.
Joking aside: Format your code properly:
SELECT column1 + '=' + column2
                        It's concatenating those column values into a single string, with a = character in between.
So if the value of column1 is "this" and the value of column2 is "that" then the resulting selection will be the string: "this=that"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With