Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have this query:
SELECT @i:=@i+1, s.* FROM quiz.score s WHERE id BETWEEN @a - @l1 AND @a + @l2 order by points desc;
@i:=@i+1 shoult increment with each row but I get for each record NULL.
@i:=@i+1
NULL
I dont see the problem. Could you help me?