SQL Server, Azure SQL Database, Amazon RDS & AWS, Oracle and IBM Help
An online community of DBAs, developers and data intelligence builders, with videos, articles, resources and online events for members and non-members.
Find out more >>
(Saverio Miroddi) A common MySQL strategy to perform updates with accumulating functions is to employ user-defined variables, using the UPDATE […] SET mycol = (@myvar := EXPRESSION(@myvar, mycol)) pattern.