I am writing my queries in 'standard' / 'generic' SQL so that it runs on any database (MySQL, Postgre etc).
I'd like to use DATE_ADD()
of MySQL. In Postgre, it would be done with something like '2001-01-01'::timestamp + '1 year'::interval;
.
Is there a more 'general' way of writing it so that it runs on both MySQL and Postgre (or others) ?