Essayez ceci sur
SELECT @s:[email protected]+1 serial_number,student_id,student_name,student_avg
FROM students,
(SELECT @s:= 0) AS s
WHERE
student_avg > 4;
https://stackoverflow.com/a/11096550/1423506
Essayez ceci sur
SELECT @s:[email protected]+1 serial_number,student_id,student_name,student_avg
FROM students,
(SELECT @s:= 0) AS s
WHERE
student_avg > 4;
https://stackoverflow.com/a/11096550/1423506