Oracle get date formatted as string between two dates -


i trying work 2 formatted dates, if have to_date('20160101' yymmdd) , to_date('20160104', yymmdd) receive output:

20160101 20160102 20160103 20160104 

is there fast way achieve without using pl/sql?

thanks all!

the format mask in to_date() must enclosed within single quotes too.

to produce output in string format need apply to_char() same format mask.

select to_char(to_date('20160101', 'yyyymmdd') + level - 1, 'yyyymmdd') dt   dual connect level <= 1 + to_date('20160104', 'yyyymmdd') - to_date('20160101', 'yyyymmdd') ;   dt      -------- 20160101 20160102 20160103 20160104 

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -