Answers for "mysql insert generate serie"

SQL
1

mysql insert generate serie

WITH RECURSIVE sequence AS (
    SELECT 1 AS level
    UNION ALL
    SELECT level + 1 AS value
    FROM sequence
    WHERE sequence.level < 10
)
SELECT level
FROM sequence;
Posted by: Guest on July-09-2020
0

mysql row generator

SELECT  @curRow := @curRow + 1 AS row_number
FROM    sometable 
JOIN    (SELECT @curRow := 0) r
WHERE   @curRow<100;
Posted by: Guest on July-09-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language