SQL 手册SQL 函数表函数EXPLODE_NUMBERS本页总览EXPLODE_NUMBERSexplode_numbersdescription表函数,需配合 Lateral View 使用。获得一个[0,n)的序列。syntaxexplode_numbers(n)examplemysql> select e1 from (select 1 k1) as t lateral view explode_numbers(5) tmp1 as e1;+------+| e1 |+------+| 0 || 1 || 2 || 3 || 4 |+------+keywordsexplode,numbers,explode_numbers