RsD0p9BK
2/26/2015 - 6:30 AM

alias as field.sql

-- How to use alias as field in mysql
-- http://stackoverflow.com/questions/6081436/how-to-use-alias-as-field-in-mysql

select @code:= SUM(field1 + field2), @code+1 from abc;