Hi,
> I am trying to keep portability between H2 and MySQL and I would also
> like to use the TIMESTAMPDIFF function. Does H2 support this function?
I found a link:
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timestampdiff
H2 currently doesn't support it. Unfortunately, it's not possible to
emulate it using a user defined function because the first parameter
is not in quotes. But according to my tests, TIMESTAMPDIFF exactly
matches the H2 system function DATEDIFF. I will make it an alias, so
TIMESTAMPDIFF will be supported starting with the next release.
Regards,
Thomas