I have this query:
SET @runtot:=0;
SELECT Fecha, (@runtot := @runtot + Numero) AS 'N'
FROM Tabla
WHERE 'ID' = 2
I am using this query on a page of php . But since there is a ;
in the query (at the end of SET @runtot:=0;
), the query fails me when I try it on the page of php - in Navicat it works perfectly.
What can I use instead of the ;
to be able to use it in