Subject | RE: [ib-support] Date Operations |
---|---|
Author | Sandeep |
Post date | 2001-10-31T20:03:53Z |
On 31 Oct 2001, at 9:12, Ignace MARTIN wrote:
and passing the date as parameter.
I've tried using udf's but cannot get them to work, and have given up
on them. I'm using Delphi5 and Firebird.
Thanx anyway
Regards
Sandeep
Software Developer
CFL
sandeep@...
http://www.cfl.co.nz
> Sandeep,I got around it by calling a stored procedure from my application
>
> here is an idea :
>
> DECLARE VARIABLE I SMALLINT
> I=0
> WHILE (I<12) DO
> BEGIN
> INSERT INTO MYTABLE VALUES(...,DATEADD('m',I,CAST('TODAY' AS DATE)),...)
> END
>
>
> where DATEADD is a UDF you have to write...
and passing the date as parameter.
I've tried using udf's but cannot get them to work, and have given up
on them. I'm using Delphi5 and Firebird.
Thanx anyway
Regards
Sandeep
Software Developer
CFL
sandeep@...
http://www.cfl.co.nz