Subject | Re: [firebird-support] Where is the DateDiff function in Firebird 2.03? |
---|---|
Author | Helen Borrie |
Post date | 2009-05-19T22:48:38Z |
At 06:51 AM 20/05/2009, you wrote:
select datediff (second, (cast(current_date as timestamp)), current_timestamp)
./hb
>Has the DateDiff function been deprecated? I can't seem to get a simple query like this to workWhen passing an expression as a parameter, wrap the expression in brackets:
>
>select datediff(
>second, cast(current_date as timestamp), current_timestamp)
>
>I get an unknown token for second (Using Database Workbench v2.8.8b Pro).
select datediff (second, (cast(current_date as timestamp)), current_timestamp)
./hb