Subject | Re: [ib-support] Calendar |
---|---|
Author | Bob Murdoch |
Post date | 2003-01-10T15:51:17Z |
At 1/10/2003 10:38 AM, you wrote:
create procedure Populate_Calendar(Start_Date date, End_Date date) as
begin
while (Start_Date <= End_Date) do begin
insert into Calendar(cal_date)
values (:Start_Date);
Start_date = Start_Date + 1;
end
end
hth,
Bob M..
>I'd like to create a calendar table inserting all of the day of theWrite a stored proc to do it:
>current year.
>Is there any way to select days or count of it from current month
>(and select months or count of it from current year)?
>Or any else ideas?
create procedure Populate_Calendar(Start_Date date, End_Date date) as
begin
while (Start_Date <= End_Date) do begin
insert into Calendar(cal_date)
values (:Start_Date);
Start_date = Start_Date + 1;
end
end
hth,
Bob M..