[UPHPU] mysql date calculation bug
Jim Anderson
jim.anderson at techiegroup.com
Mon Oct 15 16:16:46 MDT 2007
> Just a suggestion related to the question...
>
> Try to use standard SQL if possible. Might help you in the future. I'm
> using two different standard forms for intervals here, plus the
> CURRENT_DATE standard SQL.
>
> SELECT (current_date - CAST('44 Days' as interval)) - interval '6 months'
>
> Looks cleaner to me, and it's not MySQL-specific.
>
> -Roberto
>
not a bad idea. too bad your example doesn't execute for me ;)
More information about the UPHPU
mailing list