Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Select multiple rows from DUAL ?
Anurag Varma wrote:
> The simple way which Serge hints to:
>
> ORA92> create type myarray as table of number;
> 2 /
>
> Type created.
>
> ORA92> select * from table(myarray(1,2,3,4));
>
> COLUMN_VALUE
> ------------
> 1
> 2
> 3
> 4
I wonder if this would be a nice, acceptable way of getting rid of the final consistent gets from DUAL?
As in:
...>select user,sysdate from table(myarray(10)); Press Return to continue...
USER SYSDATE ------------------------------ -------------------- MIGR_USER 2005-JAN-10 08:06:43
Elapsed: 00:00:00.09
Statistics
1 rows processed
...>
;)
Received on Sun Jan 09 2005 - 15:09:12 CST