by 박상현 [MySQL] connect by level [2012.04.12 12:31:20]
WITH t(lv) AS ( SELECT 1 lv UNION ALL SELECT lv + 1 FROM t WHERE lv + 1 <= 10 ) SELECT * FROM t ;
감사합니다. 덕분에 해결했네요.