Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql row generator

SELECT  @curRow := @curRow + 1 AS row_number
FROM    sometable 
JOIN    (SELECT @curRow := 0) r
WHERE   @curRow<100;
Source by stackoverrun.com #
 
PREVIOUS NEXT
Tagged: #mysql #row #generator
ADD COMMENT
Topic
Name
8+8 =