Answers for "@rownum in mysql explain"

PHP
-1

mysql row_number() example

SET @row_number = 0; 
SELECT 
    (@row_number:=@row_number + 1) AS num, 
    firstName, 
    lastName
FROM
    employees
ORDER BY firstName, lastName    
LIMIT 5;
Posted by: Guest on November-01-2020

Browse Popular Code Answers by Language