Hi all i have this code:
But return me error:
also if when this code run in AdminSQL i have correct result.
Any idea or solution ?
Thank you
Marco
B4X:
ExecuteRemoteQuery($"
SET @num = 1;
Select
id,
id_clinic,
name_customer,
phone_customer,
assign_doctor,
emergency,
time_booking,
state,
@num := If(@id = id, @num + 1, 1) As RowNum,
@id := id As dummy
from `clinic_visit`;"$, "LeggiAppuntamenti")
But return me error:
from `clinic_visit`;nYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Select
also if when this code run in AdminSQL i have correct result.
Any idea or solution ?
Thank you
Marco