How to select multiple rows filled with constants?

后端 未结 15 1057
夕颜
夕颜 2020-11-29 17:08

Selecting constants without referring to a table is perfectly legal in an SQL statement:

SELECT 1, 2, 3

The result set that the latter retu

15条回答
  •  一个人的身影
    2020-11-29 17:45

    Try the connect by clause in oracle, something like this

    select level,level+1,level+2 from dual connect by level <=3;
    

    For more information on connect by clause follow this link : removed URL because oraclebin site is now malicious.

提交回复
热议问题