Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

custom row number

SET @row_number = 0; 
SELECT 
    (@row_number:=@row_number + 1) AS num, 
    firstName, 
    lastName
FROM
    employees
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #custom #row #number
ADD COMMENT
Topic
Name
8+9 =