I just know a little sql basics and need to write a plain sql syntax highlighter/checker
So I'm fighting through the standard...
I stumbled over somthing I'm not sure I understand it right, as I never have seen someone using a SET in that way.
Its definition looks like this:
<multiple column assignment> ::=
<set target list> <equals operator> <assigned row>
Where set target list is defined this way:
<set target list> ::=
<left paren> <set target> [ { <comma> <set target> }... ] <right paren>
This sounds to me as one could do:
UPDATE ...
SET (A, B, C) = (1, 2, 3)
To update A's value to 1, B's to 2 and C's to 3.
What me makes ruminative is the = as I never have seen a SET in this way and can't find any examples in the web using it that way.
So I'm also not sure about understanding the whole definition right.
Could some one tell me is this correct? And if not so, could you explain me what this definition defines otherwise?