I've run this simple query in the terminal and it's okCode:SELECT SUM(a*b) as total FROM tab_1 GROUP BY a WITH ROLLUP
Does anyone know how to echo out the last row generated by the modifier GROUP BY....WITH ROLLUP ?
Like I just want the total and not the figures which make it up.
(There may be disagreement but I think this query is OK in the Mysql forum.)
Marmot





Bookmarks