For more information, see DECLARE CURSOR (Transact-SQL). You can use the compound assignment operator anywhere you have an assignment with an expression on the right-hand side of the operator, ...