Is there any way to add dates/times that will be portable between Oracle and MySQL?
For example, in Oracle, adding col + 1
to a date column will add a day.
In MySQL, adding col + 1
to a datetime
column will add a SECOND.
Is there a function that would give the same results in both?
(I'm trying to use this in an order by
, for example, order by col1 + col2/(60*24)
- if it were part of the SELECT or WHERE, there might be better options.)
Thanks!