I have an oracle db and I need a table containing all the dates spanning 2 years;
for example from 01/01/2011 to 01/01/2013.
First I thought of a sequence but apparently the only supported type is number, so now I am looking for an efficient way to do this
cheers hoax
If what you want is to populate a block of records with sequential dates, that is easy enough to do. The following query generates ten dates. All you need to do is adjust the seed date to give you your starting point and the
levelin theconnect byclause to fit your end point, and then plug it into aninsertstatement.