MySql is the oddity that SET statements are non-atomic, which means that as soon as a new value is assigned to one column, this new value will be reflected if it is used elsewhere in the update statement.
The following statements:
CREATE TABLE Swap ( a CHAR(1), b CHAR(1) ); INSERT INTO Swap (a, b) VALUES ('a', 'b'); UPDATE Swap SET a = b, b = a; SELECT * FROM Swap;
The result will be b , b in MySql, but b , a in every other RBDMS I know about ...
So, for your question, you do not need the binaryData alias, because once it is updated, the updated value will be reflected in the isBig assignment isBig .
However, it is probably a bad idea to rely on this behavior because it is non-standard.
source share