Is there a possibility to do something like this?
SELECT
@z:=SUM(item),
2*@z
FROM
TableA;
I always get NULL for the second column. The strange thing is, that while doing something like
SELECT
@z:=someProcedure(item),
2*@z
FROM
TableA;
everything works as expected. Why?
@z:=someProcedure(item), 2*@z
working above is just a happy coincidence. – Gosport