Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: generate list of days of curr month in SQLPLUS
Try:
SELECT rownum day
FROM all_objects
WHERE rownum between 1 and to_number(to_char(last_day('1-AUG-98'),'DD'))
In article <35EC7E7A.617A7947_at_cisco.com>,
Kal Khatib <kkhatib_at_cisco.com> wrote:
> is it possible to write a statement that returns
> number_of_days_in_curr_month rows, each row containing the day,
> in SQLPLUS?
>
> example:
>
> day
> -----
> 1
> 2
> 3
> ...
> ...
> 31
>
> thanks
> Kal.
>
>
-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum Received on Wed Sep 02 1998 - 12:14:11 CDT
![]() |
![]() |